<!-- 博客 - 页面布局 > 上中下 -->



<!DOCTYPE html>
<html lang="zh-CN" data-default-color-scheme=dark>
<!-- 博客 - 导航栏上方 -->


<head>
  <meta charset="UTF-8">
  <link rel="apple-touch-icon" sizes="76x76" href="/blog/img/fluid.png">
  <link rel="icon" href="/blog/img/icon/dw.png">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, shrink-to-fit=no">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  
  <meta name="theme-color" content="#2f4154">
  <meta name="author" content="Memory">
  <meta name="keywords" content="">

  
    <meta name="description" content="🥣 分享经验，实用技巧帮你打造专属个人博客站点">
<meta property="og:type" content="article">
<meta property="og:title" content="大道至简：快速搭建博客与文档站点的终极指南1.0">
<meta property="og:url" content="https://test.atomgit.net/blog/2023/05/27/%E5%A4%A7%E9%81%93%E8%87%B3%E7%AE%80%EF%BC%9A%E5%BF%AB%E9%80%9F%E6%90%AD%E5%BB%BA%E5%8D%9A%E5%AE%A2%E4%B8%8E%E6%96%87%E6%A1%A3%E7%AB%99%E7%82%B9%E7%9A%84%E7%BB%88%E6%9E%81%E6%8C%87%E5%8D%971.0/index.html">
<meta property="og:site_name" content="Memory&#39;s blog">
<meta property="og:description" content="🥣 分享经验，实用技巧帮你打造专属个人博客站点">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://test.atomgit.net/blog/img/artical/mountain0414.jpg">
<meta property="article:published_time" content="2023-05-27T11:14:48.000Z">
<meta property="article:modified_time" content="2025-10-01T15:29:59.000Z">
<meta property="article:author" content="Memory">
<meta property="article:tag" content="经验">
<meta property="article:tag" content="Blog">
<meta property="article:tag" content="Docs">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="https://test.atomgit.net/blog/img/artical/mountain0414.jpg">
  
  
  
  <title>大道至简：快速搭建博客与文档站点的终极指南1.0 - Memory&#39;s blog</title>

  <link  rel="stylesheet" href="https://lib.baomitu.com/twitter-bootstrap/4.6.1/css/bootstrap.min.css" />



  <link  rel="stylesheet" href="https://lib.baomitu.com/github-markdown-css/4.0.0/github-markdown.min.css" />

  <link  rel="stylesheet" href="https://lib.baomitu.com/hint.css/2.7.0/hint.min.css" />

  <link  rel="stylesheet" href="https://lib.baomitu.com/fancybox/3.5.7/jquery.fancybox.min.css" />



<!-- 主题依赖的图标库，不要自行修改 -->
<!-- Do not modify the link that theme dependent icons -->

<link rel="stylesheet" href="//at.alicdn.com/t/font_1749284_hj8rtnfg7um.css">



<link rel="stylesheet" href="//at.alicdn.com/t/font_1736178_lbnruvf0jn.css">


<link  rel="stylesheet" href="/blog/css/main.css" />


  <link id="highlight-css" rel="stylesheet" href="/blog/css/highlight.css" />
  
    <link id="highlight-css-dark" rel="stylesheet" href="/blog/css/highlight-dark.css" />
  



  
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.css">



  <script id="fluid-configs">
    var Fluid = window.Fluid || {};
    Fluid.ctx = Object.assign({}, Fluid.ctx)
    var CONFIG = {"hostname":"test.atomgit.net","root":"/blog/","version":"1.9.4","typing":{"enable":true,"typeSpeed":100,"cursorChar":"_","loop":false,"scope":[]},"anchorjs":{"enable":true,"element":"h1,h2,h3,h4,h5,h6","placement":"left","visible":"hover","icon":""},"progressbar":{"enable":true,"height_px":3,"color":"#29d","options":{"showSpinner":false,"trickleSpeed":100}},"code_language":{"enable":true,"default":"TEXT"},"copy_btn":true,"image_caption":{"enable":true},"image_zoom":{"enable":true,"img_url_replace":["",""]},"toc":{"enable":true,"placement":"right","headingSelector":"h1,h2,h3,h4,h5,h6","collapseDepth":0},"lazyload":{"enable":false,"loading_img":"/img/loading.gif","onlypost":false,"offset_factor":2},"web_analytics":{"enable":true,"follow_dnt":true,"baidu":null,"google":null,"gtag":null,"tencent":{"sid":null,"cid":null},"woyaola":null,"cnzz":null,"leancloud":{"appId":"T1hUHH9Ks1ggG9DBE3HgUPpV-gzGzoHsz","appKey":"XFkgzzvzNo3J3uNCbBiSOFKc","server_url":"https://t1huhh9k.lc-cn-n1-shared.com","path":"window.location.pathname","ignore_local":false}},"search_path":"/blog/local-search.xml"};

    if (CONFIG.web_analytics.follow_dnt) {
      var dntVal = navigator.doNotTrack || window.doNotTrack || navigator.msDoNotTrack;
      Fluid.ctx.dnt = dntVal && (dntVal.startsWith('1') || dntVal.startsWith('yes') || dntVal.startsWith('on'));
    }
  </script>
  <script  src="/blog/js/utils.js" ></script>
  <script  src="/blog/js/color-schema.js" ></script>
  

  

  

  

  

  

  

  



  
<meta name="generator" content="Hexo 5.4.2"></head>

<body>
  

  <header>
    <!-- 博客 - 导航栏上方 -->


<div class="header-inner" style="height: 100vh">
  <nav id="navbar" class="navbar fixed-top  navbar-expand-lg navbar-dark scrolling-navbar">
  <div class="container">
    <a class="navbar-brand" href="/blog/">
      <strong>Memory&#39;s blog</strong>
    </a>

    <button id="navbar-toggler-btn" class="navbar-toggler" type="button" data-toggle="collapse"
            data-target="#navbarSupportedContent"
            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
      <div class="animated-icon"><span></span><span></span><span></span></div>
    </button>

    <!-- Collapsible content -->
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav ml-auto text-center">
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/blog/">
                <i class="iconfont icon-home-fill"></i>
                <span>首页</span>
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/blog/archives/">
                <i class="iconfont icon-archive-fill"></i>
                <span>归档</span>
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/blog/categories/">
                <i class="iconfont icon-category-fill"></i>
                <span>分类</span>
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/blog/tags/">
                <i class="iconfont icon-tags-fill"></i>
                <span>标签</span>
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/blog/about/">
                <i class="iconfont icon-user-fill"></i>
                <span>关于</span>
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/blog/links/">
                <i class="iconfont icon-link-fill"></i>
                <span>友链</span>
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/blog/playlist/">
                <i class="iconfont icon-music"></i>
                <span>音乐</span>
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/blog/Memos/">
                <i class="iconfont icon-comment "></i>
                <span>说说</span>
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/blog/App/">
                <i class="iconfont icon-mobile"></i>
                <span>咫尺</span>
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item dropdown">
              <a class="nav-link dropdown-toggle" target="_self" href="javascript:;" role="button"
                 data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                <i class="iconfont icon-books"></i>
                <span>青简</span>
              </a>
              <div class="dropdown-menu" aria-labelledby="navbarDropdown">
                
                  
                  
                  
                  <a class="dropdown-item" target="_blank" rel="noopener" href="http://47.93.135.62:5230/explore">
                    <i class="iconfont icon-images"></i>
                    <span>碎念微光</span>
                  </a>
                
                  
                  
                  
                  <a class="dropdown-item" href="/blog/New/">
                    <i class="iconfont icon-bug"></i>
                    <span>匠册详析</span>
                  </a>
                
                  
                  
                  
                  <a class="dropdown-item" href="/blog/New/">
                    <i class="iconfont icon-xbox-fill"></i>
                    <span>窗景新编</span>
                  </a>
                
                  
                  
                  
                  <a class="dropdown-item" href="/blog/New/">
                    <i class="iconfont icon-steam"></i>
                    <span>戏码幕后</span>
                  </a>
                
                  
                  
                  
                  <a class="dropdown-item" href="/blog/New/">
                    <i class="iconfont icon-map"></i>
                    <span>他山随拾</span>
                  </a>
                
              </div>
            </li>
          
        
        
            <li class="nav-item" id="search-btn">
                <a class="nav-link" target="_self" href="javascript:;" data-toggle="modal" data-target="#modalNotice" aria-label="Search">
                    <i class="iconfont icon-book"></i>
                    <span>公告</span>
                </a>
            </li>
            
        
        
          <li class="nav-item" id="search-btn">
            <a class="nav-link" target="_self" href="javascript:;" data-toggle="modal" data-target="#modalSearch" aria-label="Search">
              <i class="iconfont icon-search"></i>
            </a>
          </li>
          
        
        
          <li class="nav-item" id="color-toggle-btn">
            <a class="nav-link" target="_self" href="javascript:;" aria-label="Color Toggle">
              <i class="iconfont icon-dark" id="color-toggle-icon"></i>
            </a>
          </li>
        
      </ul>
    </div>
  </div>
</nav>
 
<div id="banner" class="banner" parallax=true
     style="background: url('/blog/img/artical/mountain0414.jpg') no-repeat center center; background-size: cover;">
  <div class="full-bg-img">

    <div class="mask flex-center" style="background-color: rgba(0, 0, 0, 0.3)">
      <div class="banner-text text-center fade-in-up">

        <div class="h2">
          
            <span id="subtitle" data-typed-text="大道至简：快速搭建博客与文档站点的终极指南1.0"></span>
          
        </div>


        
          <!-- 文章页面 - 顶部信息 -->

<div class="mt-3">
  
  <span class="post-meta mr-2">
    <i class="iconfont icon-author" aria-hidden="true"></i>
    Memory
  </span>
   
  <span class="post-meta">
    <i class="iconfont icon-date-fill" aria-hidden="true"></i>
    <time datetime="2023-05-27 19:14" pubdate>
      2023年5月27日 晚上
    </time>
  </span>
  
</div>

<div class="mt-1">
  
  <span class="post-meta mr-2">
    <i class="iconfont icon-chart"></i>
     116k 字 
  </span>
   
  <span class="post-meta mr-2">
    <i class="iconfont icon-clock-fill"></i>
       291 分钟 
  </span>
     
  <span
    id="leancloud-page-views-container"
    class="post-meta"
    style="display: none"
  >
    <i class="iconfont icon-eye" aria-hidden="true"></i>
    <span id="leancloud-page-views"></span> 次
  </span>

    
</div>


        

        <!-- 添加网站运行时间 -->
        <div class="footer-content" style="background-color: transparent;">
          <div>
            <span id="timeDate"></span>
            <span id="times"></span>
            <script>
            var now = new Date();
            function createtime(){
                var grt= new Date("03/07/2023 00:00:00");//此处修改你的建站时间或者网站上线时间
                now.setTime(now.getTime()+250);
                days = (now - grt ) / 1000 / 60 / 60 / 24;
                dnum = Math.floor(days);
                hours = (now - grt ) / 1000 / 60 / 60 - (24 * dnum);
                hnum = Math.floor(hours);
                if(String(hnum).length ==1 ){
                    hnum = "0" + hnum;
                }
                minutes = (now - grt ) / 1000 /60 - (24 * 60 * dnum) - (60 * hnum);
                mnum = Math.floor(minutes);
                if(String(mnum).length ==1 ){
                          mnum = "0" + mnum;
                }
                seconds = (now - grt ) / 1000 - (24 * 60 * 60 * dnum) - (60 * 60 * hnum) - (60 * mnum);
                snum = Math.round(seconds);
                if(String(snum).length ==1 ){
                          snum = "0" + snum;
                }
                document.getElementById("timeDate").innerHTML = "🚀 &nbsp"+dnum+"&nbsp天";  //此次自定义显示内容
                document.getElementById("times").innerHTML = hnum + "&nbsp小时&nbsp" + mnum + "&nbsp分&nbsp" + snum + "&nbsp秒";
            }  

            if (!window.location.href.includes('/20')) {  
            setInterval("createtime()", 250);  // 只有当URL不包含'specific-page'时，才调用createtime  
            }//此次自定义显示内容
            </script>
          </div>
        </div>

      </div>
      
        <div class="scroll-down-bar">
          <i class="iconfont icon-arrowdown"></i>
        </div>
      
    </div>
  </div>
</div>

</div>

  </header>

  <main>
    
      <!-- 文章页  -->


<div class="container-fluid nopadding-x">

  <div class="row nomargin-x">
    <div class="side-col d-none d-lg-block col-lg-2">
      
  <aside class="sidebar category-bar" style="margin-right: -1rem">
    <!-- 文章页面 - 左边栏所属分类 -->
  

<!-- 文章页 - 文章分类 -->





<div class="category-list">
  
  
    
    
    
    <div class="category row nomargin-x">
      <a class="category-item 
          list-group-item category-item-action col-10 col-md-11 col-xm-11" title="个人博客"
        id="heading-9cfd28a41ea3ebc9060caef8d71248d6" role="tab" data-toggle="collapse" href="#collapse-9cfd28a41ea3ebc9060caef8d71248d6"
        aria-expanded="true"
      >
        个人博客
        <span class="list-group-count">(4)</span>
        <i class="iconfont icon-arrowright"></i>
      </a>
      
      <div class="category-collapse collapse show" id="collapse-9cfd28a41ea3ebc9060caef8d71248d6"
           role="tabpanel" aria-labelledby="heading-9cfd28a41ea3ebc9060caef8d71248d6">
        
        
          
          
  <div class="category-post-list">
    
    
      
      
        <a href="/blog/2023/03/23/%E6%96%87%E5%BE%84%E9%80%9A%E5%B9%BD%EF%BC%9A%E6%AC%A2%E8%BF%8E%E8%B5%B0%E8%BF%9B%E6%88%91%E7%9A%84%E6%96%87%E5%AD%97%E4%B8%96%E7%95%8C/" title="文径通幽：欢迎走进我的文字世界"
           class="list-group-item list-group-item-action
           ">
          <span class="category-post">文径通幽：欢迎走进我的文字世界</span>
        </a>
      
    
  </div>

          
  
    
    
    
    <div class="category-sub row nomargin-x">
      <a class="category-subitem 
          list-group-item category-item-action col-10 col-md-11 col-xm-11" title="代码锋芒"
        id="heading-843238cb7c4b39b52e95311733ff6da6" role="tab" data-toggle="collapse" href="#collapse-843238cb7c4b39b52e95311733ff6da6"
        aria-expanded="true"
      >
        代码锋芒
        <span class="list-group-count">(3)</span>
        <i class="iconfont icon-arrowright"></i>
      </a>
      
      <div class="category-collapse collapse show" id="collapse-843238cb7c4b39b52e95311733ff6da6"
           role="tabpanel" aria-labelledby="heading-843238cb7c4b39b52e95311733ff6da6">
        
        
          
          
  <div class="category-post-list">
    
    
  </div>

          
  
    
    
    
    <div class="category-sub row nomargin-x">
      <a class="category-subitem 
          list-group-item category-item-action col-10 col-md-11 col-xm-11" title="部署之道"
        id="heading-36acf247b1a64f4bbe423776a392cfde" role="tab" data-toggle="collapse" href="#collapse-36acf247b1a64f4bbe423776a392cfde"
        aria-expanded="true"
      >
        部署之道
        <span class="list-group-count">(3)</span>
        <i class="iconfont icon-arrowright"></i>
      </a>
      
      <div class="category-collapse collapse show" id="collapse-36acf247b1a64f4bbe423776a392cfde"
           role="tabpanel" aria-labelledby="heading-36acf247b1a64f4bbe423776a392cfde">
        
        
          
  <div class="category-post-list">
    
    
      
      
        <a href="/blog/2023/05/27/%E5%A4%A7%E9%81%93%E8%87%B3%E7%AE%80%EF%BC%9A%E5%BF%AB%E9%80%9F%E6%90%AD%E5%BB%BA%E5%8D%9A%E5%AE%A2%E4%B8%8E%E6%96%87%E6%A1%A3%E7%AB%99%E7%82%B9%E7%9A%84%E7%BB%88%E6%9E%81%E6%8C%87%E5%8D%971.0/" title="大道至简：快速搭建博客与文档站点的终极指南1.0"
           class="list-group-item list-group-item-action
           active">
          <span class="category-post">大道至简：快速搭建博客与文档站点的终极指南1.0</span>
        </a>
      
    
      
      
        <a href="/blog/2023/06/24/%E5%A4%A7%E9%81%93%E8%87%B3%E7%AE%80%EF%BC%9A%E5%BF%AB%E9%80%9F%E6%90%AD%E5%BB%BA%E5%8D%9A%E5%AE%A2%E4%B8%8E%E6%96%87%E6%A1%A3%E7%AB%99%E7%82%B9%E7%9A%84%E7%BB%88%E6%9E%81%E6%8C%87%E5%8D%972.0/" title="大道至简：快速搭建博客与文档站点的终极指南2.0"
           class="list-group-item list-group-item-action
           ">
          <span class="category-post">大道至简：快速搭建博客与文档站点的终极指南2.0</span>
        </a>
      
    
      
      
        <a href="/blog/2023/06/26/%E5%A4%A7%E9%81%93%E8%87%B3%E7%AE%80%EF%BC%9A%E5%BF%AB%E9%80%9F%E6%90%AD%E5%BB%BA%E5%8D%9A%E5%AE%A2%E4%B8%8E%E6%96%87%E6%A1%A3%E7%AB%99%E7%82%B9%E7%9A%84%E7%BB%88%E6%9E%81%E6%8C%87%E5%8D%973.0/" title="大道至简：快速搭建博客与文档站点的终极指南3.0"
           class="list-group-item list-group-item-action
           ">
          <span class="category-post">大道至简：快速搭建博客与文档站点的终极指南3.0</span>
        </a>
      
    
  </div>

        
      </div>
    </div>
  
        
      </div>
    </div>
  
        
      </div>
    </div>
  
</div>

  </aside>


    </div>

    <div class="col-lg-8 nopadding-x-md">
      <div class="container nopadding-x-md" id="board-ctn">
        <div id="board">
          <article class="post-content mx-auto">
            <!-- SEO header -->
            <h1 style="display: none">大道至简：快速搭建博客与文档站点的终极指南1.0</h1>
            
              <p class="note note-success">
                
                  
                    本文最后更新于：2 个月前
                  
                
              </p>
            
            
              <div class="markdown-body">
                
                <h1 id="写在前面"><a href="#写在前面" class="headerlink" title="写在前面"></a>写在前面</h1><p>我们演示使用 <strong>Hexo 静态站点生成器</strong>快速搭建个人博客，并使用 <strong>Gitee / GitHub 托管</strong>静态站点。</p>
<blockquote>
<p>2024 年 8 月 9 日</p>
</blockquote>
<p>自从昨天晚上优化完毕博客所有首页图片之后，都由不得每天想点开多看两眼这全新的博客界面。</p>
<p>建站五百多天，也是时候给这篇博客栏目添加一些新鲜血液了，从来没有正式介绍过我的个人博客 - Memory‘s Blog。</p>
<p>我是从去年六月初开始在个人博客上着手记录个人生活的，到现在也有十四个月了，时间过得真快。</p>
<p>一年多的生活记录，每天的日常生活我都会尽量记录在《我的编程生活之旅》栏目中，事无巨细。</p>
<p>简直无法想象没有成功搭建个人博客之前，我的生活到底是怎样的。</p>
<p>有太多有趣的事情没有记录下来，有太多值得纪念的瞬间慢慢在脑海中消散，而自己对此却全然不知。</p>
<p>遗憾是人生之常事，但如果选择忘记甚至是丢弃自己曾经拥有过的那些快乐时光，那无疑是最大的遗憾。</p>
<p>我在今年一月份创建的全新栏目《岁月如歌：我的人生回忆录》，那天早上我第一次意识到原来我的过去也是那么精彩，那么值得回味。</p>
<p>仅仅是因为那些是过去的事情就不值得怀恋了吗，恰恰是那些曾经我经历过的事情，才最终成就了今天完整的我。</p>
<p>上个月应该是九号左右的某个晚上，在我兄弟的陪伴下，我躺在床上梦呓般地回顾了我短暂又精彩绝伦的上半年。</p>
<p>又过了半个多月，我俩又不禁回忆起过去十几年的岁月，同上学时期经常聊起小时候那般，我来聊起了上学的那段时光。</p>
<p>为什么当时不能主动点呢，我简直受不了三五年前唯唯诺诺的我自己，我兄弟也是一样的。</p>
<p>现在回忆起以前那些受尽“苦难”的生活，有时候竟会觉得滑稽可笑，看来只要时间过得足够久，连自己都没那么容易相信和理解自己了。</p>
<p>但那些日子又何尝不精彩呢，我恨不得用现在就用文字把它们记录下来，把我身上发生过的所有故事都写下来，因为那才是真正的我啊。</p>
<p>整理成册，在我老去的时候，在一个平平无奇的下午茶时间，拉出一把躺椅躺上去慢慢翻看，回顾我这短暂又充实的一生。</p>
<p>写下去吧，这个信念要贯穿几十年的岁月。</p>
<p>希望在十年后某一个闲适的下午，我还能坐在电脑桌前，用心品读自己曾经写下的平凡故事。</p>
<p>翻看一篇文章，续写下去，看看十年的岁月是否让我的初心改变。</p>
<p>十年后的我已然不在年轻，十年后的我可能对生活缺少了更多的激情，十年后的我也许找到的生活全新的意义。</p>
<p>十年的岁月不会改变我的初心，更不会消磨我的勇气。</p>
<p>二零二四年八月九日下午三点三分，我热烈期盼那一天的到来。</p>
<p>期待那一天的到来。</p>
<h1 id="正文"><a href="#正文" class="headerlink" title="正文"></a>正文</h1><h1 id="博客搭建"><a href="#博客搭建" class="headerlink" title="博客搭建"></a>博客搭建</h1><h2 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h2><p>常见的博客站点生成器有很多，最主要的有俩：Hexo 和 Hugo</p>
<p>那我们就先使用 Hexo 来搭建了</p>
<p><strong>Hexo 是一个静态博客站点生成工具，可以把 Markdown 格式的文档转换成静态页面，非常适合用来作个人技术博客</strong></p>
<p>其实所有的搭建流程上官网就能找到，跟着文档一步一步来也能完成，那我们这个笔记就是要教会你快速完成初始搭建</p>
<p>先放几个辅助资源：</p>
<p><strong>各站点生成器的入口：<a target="_blank" rel="noopener" href="https://jamstack.org/generators/">Static Site Generators - Top Open Source SSGs | Jamstack</a></strong></p>
<p><strong>Hexo 官网：<a target="_blank" rel="noopener" href="https://hexo.io/zh-cn/docs/setup">建站 | Hexo</a></strong></p>
<h2 id="准备工作"><a href="#准备工作" class="headerlink" title="准备工作"></a>准备工作</h2><p>使用 Hexo 搭建博客前要做的准备（这里不细讲）</p>
<p><strong>也没别的，就两点：Node.js 和 Git</strong></p>
<p>有关 Node.js 环境安装及相关知识，可以移步至《配置指南-掌握 Node-js 配置》一文中进行相关了解</p>
<p>有关 Git 基础知识，可以移步至《入门指南：掌握 Git 的基本操作及进阶学习》一文中进行相关了解</p>
<h2 id="建站"><a href="#建站" class="headerlink" title="建站"></a>建站</h2><ul>
<li><h5 id="全局安装-hexo-cli（这玩意儿是个构建工具，就是用来安装-hexo-的）"><a href="#全局安装-hexo-cli（这玩意儿是个构建工具，就是用来安装-hexo-的）" class="headerlink" title="全局安装 hexo-cli（这玩意儿是个构建工具，就是用来安装 hexo 的）"></a>全局安装 hexo-cli（这玩意儿是个构建工具，就是用来安装 hexo 的）</h5></li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">npm install --save hexo-theme-fluid<br></code></pre></td></tr></table></figure>

<ul>
<li><h5 id="在指定文件路径下初始化-hexo"><a href="#在指定文件路径下初始化-hexo" class="headerlink" title="在指定文件路径下初始化 hexo"></a>在指定文件路径下初始化 hexo</h5></li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs bash">hexo init<br>npm install<br></code></pre></td></tr></table></figure>

<ul>
<li><h5 id="如你所见，-config-yml-就是全局配置文件，我们建议复制一个-config-fluid-yml-拷贝初始配置，然后在-config-yml-里大刀阔斧地修改"><a href="#如你所见，-config-yml-就是全局配置文件，我们建议复制一个-config-fluid-yml-拷贝初始配置，然后在-config-yml-里大刀阔斧地修改" class="headerlink" title="如你所见，_config.yml 就是全局配置文件，我们建议复制一个_config.fluid.yml 拷贝初始配置，然后在_config.yml 里大刀阔斧地修改"></a>如你所见，_config.yml 就是全局配置文件，我们建议复制一个_config.fluid.yml 拷贝初始配置，然后在_config.yml 里大刀阔斧地修改</h5></li>
</ul>
<img src="http://blog.memory-life.xyz/image-20230528000510407.png" alt="image-20230528000510407" style="zoom: 150%;" />

<ul>
<li><h5 id="至此，基本的-hexo-博客站点搭建完成"><a href="#至此，基本的-hexo-博客站点搭建完成" class="headerlink" title="至此，基本的 hexo 博客站点搭建完成"></a>至此，基本的 hexo 博客站点搭建完成</h5></li>
<li><h5 id="主题不好看，接下来我们着手配置主题"><a href="#主题不好看，接下来我们着手配置主题" class="headerlink" title="主题不好看，接下来我们着手配置主题"></a>主题不好看，接下来我们着手配置主题</h5></li>
</ul>
<h1 id="主题配置"><a href="#主题配置" class="headerlink" title="主题配置"></a>主题配置</h1><h2 id="默认主题"><a href="#默认主题" class="headerlink" title="默认主题"></a>默认主题</h2><p>这里可以在 hexo 官方文档里详细了解，修改默认主题定制特色主题</p>
<h2 id="第三方主题"><a href="#第三方主题" class="headerlink" title="第三方主题"></a>第三方主题</h2><p>这里推荐一个 Hexo 搭建个人博客教程：<a target="_blank" rel="noopener" href="https://www.cnblogs.com/IRIDIUM-192/p/15750989.html">Hexo 全过程记录 从 Centos 到 Fluid - IRIDIUM-SUB - 博客园 (cnblogs.com)</a></p>
<p>这个教程超级详细，从博客的搭建到主题配置介绍一应俱全，非常值得一看</p>
<p><strong>比起默认主题，我会更加建议使用第三方主题，更加优秀和美观</strong></p>
<p>这里会简单地涉及到如何安装各式各样的主题，详细的主题配置请前往《大道至简：快速搭建博客与文档站点的终极指南 3-0》一文中学习</p>
<p>各站点生成器的入口：<a target="_blank" rel="noopener" href="https://jamstack.org/generators/">Static Site Generators - Top Open Source SSGs | Jamstack</a></p>
<p>在这个网站下，进入 Hexo 主题选择（都是人家写好的，会拉下来，拿来用就行），这里拿 fluid 主题举例</p>
<p><strong>看文档，按部就班地走就行：</strong></p>
<ul>
<li><h5 id="安装-fluid-主题"><a href="#安装-fluid-主题" class="headerlink" title="安装 fluid 主题"></a>安装 fluid 主题</h5></li>
</ul>
<figure class="highlight ada"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs ada">npm install <span class="hljs-comment">--save hexo-theme-fluid</span><br></code></pre></td></tr></table></figure>

<ul>
<li><h5 id="修改-config-yml-下的-theme"><a href="#修改-config-yml-下的-theme" class="headerlink" title="修改_config.yml 下的 theme"></a>修改_config.yml 下的 theme</h5></li>
</ul>
<figure class="highlight avrasm"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs avrasm"><span class="hljs-symbol">theme:</span> fluid  <span class="hljs-meta"># 指定主题</span><br></code></pre></td></tr></table></figure>

<ul>
<li><h5 id="新建个关于页-about（可选）"><a href="#新建个关于页-about（可选）" class="headerlink" title="新建个关于页 about（可选）"></a>新建个关于页 about（可选）</h5></li>
</ul>
<figure class="highlight haxe"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs haxe">hexo <span class="hljs-keyword">new</span> <span class="hljs-type">page</span> about<br></code></pre></td></tr></table></figure>

<ul>
<li><h5 id="执行下以下命令，成功访问到-fluid-主题的博客页面了，效果如下："><a href="#执行下以下命令，成功访问到-fluid-主题的博客页面了，效果如下：" class="headerlink" title="执行下以下命令，成功访问到 fluid 主题的博客页面了，效果如下："></a>执行下以下命令，成功访问到 fluid 主题的博客页面了，效果如下：</h5></li>
</ul>
<figure class="highlight nginx"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs nginx"><span class="hljs-attribute">hexo</span> g			<span class="hljs-comment"># 生成静态站点</span><br>hexo s			<span class="hljs-comment"># 本地开启服务</span><br></code></pre></td></tr></table></figure>

<p><img src="http://blog.memory-life.xyz/image-20230802125458256.png" alt="image-20230802125458256"></p>
<ul>
<li><h5 id="这个静态页面是由-Hexo-帮我们在本地搭建了一个-Web-服务，来支持我们访问的，适用于开发环境下的调试"><a href="#这个静态页面是由-Hexo-帮我们在本地搭建了一个-Web-服务，来支持我们访问的，适用于开发环境下的调试" class="headerlink" title="这个静态页面是由 Hexo 帮我们在本地搭建了一个 Web 服务，来支持我们访问的，适用于开发环境下的调试"></a>这个静态页面是由 Hexo 帮我们在本地搭建了一个 Web 服务，来支持我们访问的，适用于开发环境下的调试</h5></li>
<li><h5 id="实际生产过程中，我们需要把它部署到-Nginx-服务器上，方法也非常简单，"><a href="#实际生产过程中，我们需要把它部署到-Nginx-服务器上，方法也非常简单，" class="headerlink" title="实际生产过程中，我们需要把它部署到 Nginx 服务器上，方法也非常简单，"></a>实际生产过程中，我们需要把它部署到 Nginx 服务器上，方法也非常简单，</h5></li>
<li><h5 id="每个主题都有好多配置，那我们总要配置自己的特色主题吧？改成我们自己喜欢的，那就执行下面这行命令："><a href="#每个主题都有好多配置，那我们总要配置自己的特色主题吧？改成我们自己喜欢的，那就执行下面这行命令：" class="headerlink" title="每个主题都有好多配置，那我们总要配置自己的特色主题吧？改成我们自己喜欢的，那就执行下面这行命令："></a>每个主题都有好多配置，那我们总要配置自己的特色主题吧？改成我们自己喜欢的，那就执行下面这行命令：</h5></li>
</ul>
<figure class="highlight sql"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs sql">npm <span class="hljs-keyword">update</span> <span class="hljs-comment">--save hexo-theme-fluid</span><br></code></pre></td></tr></table></figure>

<ul>
<li><h5 id="这时-theme-文件夹下找到一个-config-yml-文件（往下找几层），这里我们就能自由配置、定制主题了"><a href="#这时-theme-文件夹下找到一个-config-yml-文件（往下找几层），这里我们就能自由配置、定制主题了" class="headerlink" title="这时 theme 文件夹下找到一个_config.yml 文件（往下找几层），这里我们就能自由配置、定制主题了"></a>这时 theme 文件夹下找到一个_config.yml 文件（往下找几层），这里我们就能自由配置、定制主题了</h5></li>
</ul>
<p><img src="http://blog.memory-life.xyz/image-20230703101737475.png" alt="image-20230703101737475"></p>
<ul>
<li><h5 id="详细的页面配置、主题配置在《大道至简：快速搭建博客与文档站点的终极指南-3-0》一文中有所介绍，可跳转阅读"><a href="#详细的页面配置、主题配置在《大道至简：快速搭建博客与文档站点的终极指南-3-0》一文中有所介绍，可跳转阅读" class="headerlink" title="详细的页面配置、主题配置在《大道至简：快速搭建博客与文档站点的终极指南 3-0》一文中有所介绍，可跳转阅读"></a>详细的页面配置、主题配置在《大道至简：快速搭建博客与文档站点的终极指南 3-0》一文中有所介绍，可跳转阅读</h5></li>
<li><h5 id="下面放上我的博客访问地址以及具体的页面效果："><a href="#下面放上我的博客访问地址以及具体的页面效果：" class="headerlink" title="下面放上我的博客访问地址以及具体的页面效果："></a>下面放上我的博客访问地址以及具体的页面效果：</h5></li>
<li><h5 id="Memory’s-blog-gitee-io"><a href="#Memory’s-blog-gitee-io" class="headerlink" title="Memory’s blog (gitee.io)"></a><a target="_blank" rel="noopener" href="https://deng-2022.gitee.io/blog/">Memory’s blog (gitee.io)</a></h5></li>
</ul>
<p><img src="http://blog.memory-life.xyz/image-20230527235802901.png" alt="image-20230527235802901"></p>
<p><img src="http://blog.memory-life.xyz/image-20230527235830531.png" alt="image-20230527235830531"></p>
<p><img src="http://blog.memory-life.xyz/image-20230527235851110.png" alt="image-20230527235851110"></p>
<p><img src="http://blog.memory-life.xyz/image-20230528000012337.png" alt="image-20230528000012337"></p>
<p><img src="http://blog.memory-life.xyz/image-20230528000031027.png" alt="image-20230528000031027"></p>
<p><img src="http://blog.memory-life.xyz/image-20230802130230543.png" alt="image-20230802130230543"></p>
<ul>
<li><h5 id="使用-Hexo-搭建个人博客站点教程结束（2023-05-27-晚）"><a href="#使用-Hexo-搭建个人博客站点教程结束（2023-05-27-晚）" class="headerlink" title="使用 Hexo 搭建个人博客站点教程结束（2023/05/27 晚）"></a>使用 Hexo 搭建个人博客站点教程结束（2023/05/27 晚）</h5></li>
</ul>
<blockquote>
<p>2024 年 4 月 11 日</p>
</blockquote>
<p>一年时间一晃而过，这么快就 2024 年四月份了，我的个人博客网站也在不断地充实。</p>
<p><strong>截至二零二四年二月二十七日，下午四时四十五分，我的个人博客共有七十余篇博文，总计九百余张图片、五十余万文字</strong></p>
<p>我的个人博客网站博文更新到七十五篇了！</p>
<p>再展示一下现在的博客吧：s</p>
<p><strong>晚风几许撩人意，夕阳半刻醉人心</strong></p>
<p><img src="http://blog.memory-life.xyz/image-20240411145740498.png" alt="image-20240411145740498"></p>
<p><img src="http://blog.memory-life.xyz/image-20240411145723552.png" alt="image-20240411145723552"></p>
<p><img src="http://blog.memory-life.xyz/image-20240411145801951.png" alt="image-20240411145801951"></p>
<p><img src="http://blog.memory-life.xyz/image-20240411145826060.png" alt="image-20240411145826060"></p>
<p><img src="http://blog.memory-life.xyz/image-20231111114448636.png" alt="image-20231111114448636"></p>
<blockquote>
<p>2024 年 8 月 8 日</p>
</blockquote>
<p>一晃又是四个多月，截至今晚：</p>
<p><strong>二零二四年八月八日晚十点十三分，所有八十三篇博文首页图片配置工作圆满结束，值得留念。</strong></p>
<p>这项工作拖欠很长时间了，今晚总算完成，感觉整个博客都焕然一新。</p>
<p>放几张截图留念一下吧：</p>
<p><img src="http://blog.memory-life.xyz/image-20240808221749290.png" alt="image-20240808221749290"></p>
<p><img src="http://blog.memory-life.xyz/image-20240808221816852.png" alt="image-20240808221816852"></p>
<p><img src="http://blog.memory-life.xyz/image-20240808221841795.png" alt="image-20240808221841795"></p>
<p><img src="http://blog.memory-life.xyz/image-20240808221900094.png" alt="image-20240808221900094"></p>
<p><img src="http://blog.memory-life.xyz/image-20240808221915253.png" alt="image-20240808221915253"></p>
<p><img src="http://blog.memory-life.xyz/image-20240808221938013.png" alt="image-20240808221938013"></p>
<p>上面几张是首页图，上个月中旬那会儿就已经更新完毕了，再展示一下现在的文章列表：</p>
<p><img src="http://blog.memory-life.xyz/image-20240808222040043.png" alt="image-20240808222040043"></p>
<p><img src="http://blog.memory-life.xyz/image-20240808222056316.png" alt="image-20240808222056316"></p>
<p><img src="http://blog.memory-life.xyz/image-20240808222113491.png" alt="image-20240808222113491"></p>
<p><img src="http://blog.memory-life.xyz/image-20240808222130413.png" alt="image-20240808222130413"></p>
<p><img src="http://blog.memory-life.xyz/image-20240808222149697.png" alt="image-20240808222149697"></p>
<p>有没有焕然一新的感觉呢，这些都是我最喜欢的图片呢。</p>
<p>这次的文章首页整顿就先到这里，下次再见。</p>
<h1 id="站点生成"><a href="#站点生成" class="headerlink" title="站点生成"></a>站点生成</h1><h2 id="前言-1"><a href="#前言-1" class="headerlink" title="前言"></a>前言</h2><ul>
<li><h5 id="常见的文档站点生成器有很多，最主要的有：VitePress、Vuepress-和-Docsify-等"><a href="#常见的文档站点生成器有很多，最主要的有：VitePress、Vuepress-和-Docsify-等" class="headerlink" title="常见的文档站点生成器有很多，最主要的有：VitePress、Vuepress 和 Docsify 等"></a>常见的文档站点生成器有很多，最主要的有：VitePress、Vuepress 和 Docsify 等</h5></li>
<li><h5 id="那我们就先使用-Vuepress-来生成文档站点了"><a href="#那我们就先使用-Vuepress-来生成文档站点了" class="headerlink" title="那我们就先使用 Vuepress 来生成文档站点了"></a>那我们就先使用 Vuepress 来生成文档站点了</h5></li>
<li><h5 id="其实所有的搭建流程上官网就能找到，跟着文档一步一步来也能完成，那我们这个笔记就是要教会你快速完成初始搭建"><a href="#其实所有的搭建流程上官网就能找到，跟着文档一步一步来也能完成，那我们这个笔记就是要教会你快速完成初始搭建" class="headerlink" title="其实所有的搭建流程上官网就能找到，跟着文档一步一步来也能完成，那我们这个笔记就是要教会你快速完成初始搭建"></a>其实所有的搭建流程上官网就能找到，跟着文档一步一步来也能完成，那我们这个笔记就是要教会你快速完成初始搭建</h5></li>
<li><h5 id="先放几个辅助资源："><a href="#先放几个辅助资源：" class="headerlink" title="先放几个辅助资源："></a>先放几个辅助资源：</h5></li>
<li><h5 id="各站点生成器的入口：Static-Site-Generators-Top-Open-Source-SSGs-Jamstack"><a href="#各站点生成器的入口：Static-Site-Generators-Top-Open-Source-SSGs-Jamstack" class="headerlink" title="各站点生成器的入口：Static Site Generators - Top Open Source SSGs | Jamstack"></a>各站点生成器的入口：<a target="_blank" rel="noopener" href="https://jamstack.org/generators/">Static Site Generators - Top Open Source SSGs | Jamstack</a></h5></li>
<li><h5 id="Vitepress-官网：VitePress-Vite-amp-Vue-Powered-Static-Site-Generator"><a href="#Vitepress-官网：VitePress-Vite-amp-Vue-Powered-Static-Site-Generator" class="headerlink" title="Vitepress 官网：VitePress | Vite &amp; Vue Powered Static Site Generator"></a>Vitepress 官网：<a target="_blank" rel="noopener" href="https://vitepress.dev/">VitePress | Vite &amp; Vue Powered Static Site Generator</a></h5></li>
<li><h5 id="Vuepress-官网：VuePress-vuejs-org"><a href="#Vuepress-官网：VuePress-vuejs-org" class="headerlink" title="Vuepress 官网：VuePress (vuejs.org)"></a>Vuepress 官网：<a target="_blank" rel="noopener" href="https://vuepress.vuejs.org/">VuePress (vuejs.org)</a></h5></li>
<li><h5 id="Docsify-官网："><a href="#Docsify-官网：" class="headerlink" title="Docsify 官网："></a>Docsify 官网：</h5></li>
</ul>
<h2 id="准备工作-1"><a href="#准备工作-1" class="headerlink" title="准备工作"></a>准备工作</h2><ul>
<li><h5 id="那必然是提前配置好-Node-js-环境了，这里不详细阐述，如有需请移步至文章：《配置指南-掌握-Node-js-配置》"><a href="#那必然是提前配置好-Node-js-环境了，这里不详细阐述，如有需请移步至文章：《配置指南-掌握-Node-js-配置》" class="headerlink" title="那必然是提前配置好 Node.js 环境了，这里不详细阐述，如有需请移步至文章：《配置指南-掌握 Node.js 配置》"></a>那必然是提前配置好 Node.js 环境了，这里不详细阐述，如有需请移步至文章：《配置指南-掌握 Node.js 配置》</h5></li>
</ul>
<h2 id="建站-1"><a href="#建站-1" class="headerlink" title="建站"></a>建站</h2><ul>
<li><h5 id="这部分我们会给出两种流行的文档站点生成器：VuePress-和-VitePress"><a href="#这部分我们会给出两种流行的文档站点生成器：VuePress-和-VitePress" class="headerlink" title="这部分我们会给出两种流行的文档站点生成器：VuePress 和 VitePress"></a>这部分我们会给出两种流行的文档站点生成器：VuePress 和 VitePress</h5></li>
<li><h5 id="Vitepress-与-VuePress-相似度很高，相对来讲，VitePress-更加轻量级、易上手"><a href="#Vitepress-与-VuePress-相似度很高，相对来讲，VitePress-更加轻量级、易上手" class="headerlink" title="Vitepress 与 VuePress 相似度很高，相对来讲，VitePress 更加轻量级、易上手"></a>Vitepress 与 VuePress 相似度很高，相对来讲，VitePress 更加轻量级、易上手</h5></li>
<li><h5 id="二者的区别与联系：-72-条消息-vitepress-和-vuepress-的区别-vuepress-和-vitepress-loriby-的博客-CSDN-博客"><a href="#二者的区别与联系：-72-条消息-vitepress-和-vuepress-的区别-vuepress-和-vitepress-loriby-的博客-CSDN-博客" class="headerlink" title="二者的区别与联系：(72 条消息) vitepress 和 vuepress 的区别_vuepress 和 vitepress_loriby 的博客-CSDN 博客"></a>二者的区别与联系：<a target="_blank" rel="noopener" href="https://blog.csdn.net/qq_29669259/article/details/129712443">(72 条消息) vitepress 和 vuepress 的区别_vuepress 和 vitepress_loriby 的博客-CSDN 博客</a></h5></li>
</ul>
<h2 id="VuePress"><a href="#VuePress" class="headerlink" title="VuePress"></a>VuePress</h2><blockquote>
<h5 id="推荐阅读：（2023-11-27-晚）"><a href="#推荐阅读：（2023-11-27-晚）" class="headerlink" title="推荐阅读：（2023/11/27 晚）"></a>推荐阅读：（2023/11/27 晚）</h5><p><a target="_blank" rel="noopener" href="https://vuepress.vuejs.org/guide/getting-started.html#manual-installation">Getting Started | VuePress (vuejs.org)</a></p>
<p><a target="_blank" rel="noopener" href="http://caibaojian.com/vuepress/guide/getting-started.html#%E5%85%A8%E5%B1%80%E5%AE%89%E8%A3%85">VuePress 起步 - VuePress 中文网 (caibaojian.com)</a></p>
<p><a target="_blank" rel="noopener" href="https://vuepress.vuejs.org/zh/guide/getting-started.html">快速上手 | VuePress (vuejs.org)</a></p>
</blockquote>
<ul>
<li><h5 id="跟着官网操作，简简单单（手动安装和快速安装二选一即可，前者能更好的清楚执行每一条命令的目的，后者则是一键安装）："><a href="#跟着官网操作，简简单单（手动安装和快速安装二选一即可，前者能更好的清楚执行每一条命令的目的，后者则是一键安装）：" class="headerlink" title="跟着官网操作，简简单单（手动安装和快速安装二选一即可，前者能更好的清楚执行每一条命令的目的，后者则是一键安装）："></a>跟着官网操作，简简单单（手动安装和快速安装二选一即可，前者能更好的清楚执行每一条命令的目的，后者则是一键安装）：</h5></li>
<li><h5 id="快速安装在指定目录下，执行一条命令"><a href="#快速安装在指定目录下，执行一条命令" class="headerlink" title="快速安装在指定目录下，执行一条命令"></a>快速安装在指定目录下，执行一条命令</h5></li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">yarn create vuepress-site [optionalDirectoryName]<br></code></pre></td></tr></table></figure>

<ul>
<li><h5 id="执行这条语句后，会报错："><a href="#执行这条语句后，会报错：" class="headerlink" title="执行这条语句后，会报错："></a>执行这条语句后，会报错：</h5></li>
</ul>
<p><img src="http://blog.memory-life.xyz/image-20230624230135176.png" alt="image-20230624230135176"></p>
<ul>
<li><h5 id="目前还没有解决，待解决。。。"><a href="#目前还没有解决，待解决。。。" class="headerlink" title="目前还没有解决，待解决。。。"></a>目前还没有解决，待解决。。。</h5></li>
<li><h5 id="67-条消息-success-Installed-“create-umi-0-19-0”-with-binaries-create-umi-文件名、目录名或卷标语法不正确。-CodeDevMaster-的博客-CSDN-博客"><a href="#67-条消息-success-Installed-“create-umi-0-19-0”-with-binaries-create-umi-文件名、目录名或卷标语法不正确。-CodeDevMaster-的博客-CSDN-博客" class="headerlink" title="(67 条消息) success Installed “create-umi@0.19.0” with binaries: - create-umi 文件名、目录名或卷标语法不正确。_CodeDevMaster 的博客-CSDN 博客"></a><a target="_blank" rel="noopener" href="https://blog.csdn.net/qq_38628046/article/details/103276577">(67 条消息) success Installed “create-umi@0.19.0” with binaries: - create-umi 文件名、目录名或卷标语法不正确。_CodeDevMaster 的博客-CSDN 博客</a></h5></li>
<li><h5 id="手动安装，跟着官网一步步操作："><a href="#手动安装，跟着官网一步步操作：" class="headerlink" title="手动安装，跟着官网一步步操作："></a>手动安装，跟着官网一步步操作：</h5></li>
<li><h5 id="创建并更改为新目录"><a href="#创建并更改为新目录" class="headerlink" title="创建并更改为新目录"></a>创建并更改为新目录</h5></li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash"><span class="hljs-built_in">mkdir</span> vuepress-starter &amp;&amp; <span class="hljs-built_in">cd</span> vuepress-starter<br></code></pre></td></tr></table></figure>

<ul>
<li><h5 id="使用首选包管理器初始化"><a href="#使用首选包管理器初始化" class="headerlink" title="使用首选包管理器初始化"></a>使用首选包管理器初始化</h5></li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">yarn init<br></code></pre></td></tr></table></figure>

<ul>
<li><h5 id="在本地安装-VuePress"><a href="#在本地安装-VuePress" class="headerlink" title="在本地安装 VuePress"></a>在本地安装 VuePress</h5></li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">yarn add -D vuepress<br></code></pre></td></tr></table></figure>

<ul>
<li><h5 id="创建您的第一个文档"><a href="#创建您的第一个文档" class="headerlink" title="创建您的第一个文档"></a>创建您的第一个文档</h5></li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash"><span class="hljs-built_in">mkdir</span> docs &amp;&amp; <span class="hljs-built_in">echo</span> <span class="hljs-string">&#x27;# Hello VuePress&#x27;</span> &gt; docs/README.md<br></code></pre></td></tr></table></figure>

<ul>
<li><h5 id="在-package-json-下添加如下配置"><a href="#在-package-json-下添加如下配置" class="headerlink" title="在 package.json 下添加如下配置"></a>在 package.json 下添加如下配置</h5></li>
</ul>
<figure class="highlight json"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><code class="hljs json"><span class="hljs-punctuation">&#123;</span><br>  <span class="hljs-attr">&quot;scripts&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">&#123;</span><br>    <span class="hljs-attr">&quot;docs:dev&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;vuepress dev docs&quot;</span><span class="hljs-punctuation">,</span><br>    <span class="hljs-attr">&quot;docs:build&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;vuepress build docs&quot;</span><br>  <span class="hljs-punctuation">&#125;</span><br><span class="hljs-punctuation">&#125;</span><br></code></pre></td></tr></table></figure>

<ul>
<li><h5 id="本地开启文档站点"><a href="#本地开启文档站点" class="headerlink" title="本地开启文档站点"></a>本地开启文档站点</h5></li>
</ul>
<figure class="highlight nginx"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs nginx"><span class="hljs-attribute">yarn</span> docs:dev<br></code></pre></td></tr></table></figure>

<p><img src="http://blog.memory-life.xyz/image-20230704120752939.png" alt="image-20230704120752939"></p>
<ul>
<li><h5 id="本地开启文档站点成功！效果如下："><a href="#本地开启文档站点成功！效果如下：" class="headerlink" title="本地开启文档站点成功！效果如下："></a>本地开启文档站点成功！效果如下：</h5></li>
</ul>
<p><img src="http://blog.memory-life.xyz/image-20230704120855402.png" alt="image-20230704120855402"></p>
<h2 id="VuePress（新的尝试）"><a href="#VuePress（新的尝试）" class="headerlink" title="VuePress（新的尝试）"></a>VuePress（新的尝试）</h2><ul>
<li>哎，全局安装 Vuepress 不支持了，本来挺好用的：</li>
</ul>
<figure class="highlight csharp"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs csharp">yarn <span class="hljs-keyword">init</span> / npm <span class="hljs-keyword">init</span><br></code></pre></td></tr></table></figure>

<figure class="highlight armasm"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs armasm"><span class="hljs-symbol">yarn</span> <span class="hljs-meta">global</span> <span class="hljs-keyword">add</span> vuepress / npm install -g vuepress<br></code></pre></td></tr></table></figure>

<ul>
<li>直接在 Github 下载了官方文档源码，呃，还是局部安装吧</li>
</ul>
<blockquote>
<p>下载地址：<a target="_blank" rel="noopener" href="https://github.com/vuejs/vuepress/tree/v1.9.10">vuejs/vuepress at v1.9.10 (github.com)</a></p>
</blockquote>
<ul>
<li>拉取代码后执行依次以下命令，即可成功在本地部署文档站点：</li>
</ul>
<figure class="highlight cmake"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs cmake">yarn <span class="hljs-keyword">install</span><br></code></pre></td></tr></table></figure>

<figure class="highlight ebnf"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs ebnf"><span class="hljs-attribute">yarn dev</span><br></code></pre></td></tr></table></figure>

<ul>
<li>效果如下：</li>
</ul>
<p><img src="http://blog.memory-life.xyz/image-20231127233627342.png" alt="image-20231127233627342"></p>
<ul>
<li>这两天在研究这个 Vuepress，感觉比 VitePress 更成熟、更好用</li>
<li>等我把局部安装的配置搞清楚之后，再来此处作详细记录<strong>（2023/11/27 晚）</strong></li>
</ul>
<h2 id="Vdoing"><a href="#Vdoing" class="headerlink" title="Vdoing"></a>Vdoing</h2><ul>
<li>这里先简单记录下最近遇到的语法吧：</li>
</ul>
<figure class="highlight markdown"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><code class="hljs markdown">[<span class="hljs-string">超链接</span>](<span class="hljs-link">http://www.baidu.com</span>)<br><br>[<span class="hljs-string">Markdown</span>](<span class="hljs-link">https://xugaoyi.com/pages/ad247c4332211551/</span>)<br></code></pre></td></tr></table></figure>

<ul>
<li>链接前添加<code>http</code>或<code>https</code>，这样就可以展示超链接后的图标了：<strong>（2023/12/14 晚）</strong></li>
</ul>
<p><img src="http://blog.memory-life.xyz/image-20231215001924122.png" alt="image-20231215001924122"></p>
<h2 id="VitePress"><a href="#VitePress" class="headerlink" title="VitePress"></a>VitePress</h2><ul>
<li><h5 id="跟着官网操作，也是很简单的：VitePress-Vite-amp-Vue-Powered-Static-Site-Generator"><a href="#跟着官网操作，也是很简单的：VitePress-Vite-amp-Vue-Powered-Static-Site-Generator" class="headerlink" title="跟着官网操作，也是很简单的：VitePress | Vite &amp; Vue Powered Static Site Generator"></a>跟着官网操作，也是很简单的：<a target="_blank" rel="noopener" href="https://vitepress.dev/">VitePress | Vite &amp; Vue Powered Static Site Generator</a></h5></li>
<li><h5 id="安装构建工具-vitepress，可以选择执行以下命令中的其中一条："><a href="#安装构建工具-vitepress，可以选择执行以下命令中的其中一条：" class="headerlink" title="安装构建工具 vitepress，可以选择执行以下命令中的其中一条："></a>安装构建工具 vitepress，可以选择执行以下命令中的其中一条：</h5></li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">npm install -D vitepress<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">pnpm add -D vitepress<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">yarn add -D vitepress<br></code></pre></td></tr></table></figure>

<ul>
<li><h5 id="注意，如若使用后两条命令来安装-vitepress，请确保-pnpm-和-yarn-包管理器已正确安装"><a href="#注意，如若使用后两条命令来安装-vitepress，请确保-pnpm-和-yarn-包管理器已正确安装" class="headerlink" title="注意，如若使用后两条命令来安装 vitepress，请确保 pnpm 和 yarn 包管理器已正确安装"></a>注意，如若使用后两条命令来安装 vitepress，请确保 pnpm 和 yarn 包管理器已正确安装</h5></li>
<li><h5 id="有兴趣了解这方面内容的话，请转移至《理解-npm、pnpm-和-yarn：选出最适合你的包管理器》一文中查看"><a href="#有兴趣了解这方面内容的话，请转移至《理解-npm、pnpm-和-yarn：选出最适合你的包管理器》一文中查看" class="headerlink" title="有兴趣了解这方面内容的话，请转移至《理解 npm、pnpm 和 yarn：选出最适合你的包管理器》一文中查看"></a>有兴趣了解这方面内容的话，请转移至《理解 npm、pnpm 和 yarn：选出最适合你的包管理器》一文中查看</h5></li>
<li><h5 id="我们选择使用-yarn-来安装，效果如下："><a href="#我们选择使用-yarn-来安装，效果如下：" class="headerlink" title="我们选择使用 yarn 来安装，效果如下："></a>我们选择使用 yarn 来安装，效果如下：</h5></li>
</ul>
<p><img src="http://blog.memory-life.xyz/image-20230704113352687.png" alt="image-20230704113352687"></p>
<ul>
<li><h5 id="等待安装完成后，方可执行下一步操作："><a href="#等待安装完成后，方可执行下一步操作：" class="headerlink" title="等待安装完成后，方可执行下一步操作："></a>等待安装完成后，方可执行下一步操作：</h5></li>
<li><h5 id="初始化构建工具-vitepress"><a href="#初始化构建工具-vitepress" class="headerlink" title="初始化构建工具 vitepress"></a>初始化构建工具 vitepress</h5></li>
<li><h5 id="当然，选择执行以下其中一条命令即可："><a href="#当然，选择执行以下其中一条命令即可：" class="headerlink" title="当然，选择执行以下其中一条命令即可："></a>当然，选择执行以下其中一条命令即可：</h5></li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">npx vitepress init<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">pnpm dlx vitepress init<br></code></pre></td></tr></table></figure>

<ul>
<li><h5 id="执行效果如下："><a href="#执行效果如下：" class="headerlink" title="执行效果如下："></a>执行效果如下：</h5></li>
</ul>
<img src="http://blog.memory-life.xyz/image-20230704114248112.png" alt="image-20230704114248112" style="zoom:80%;" />

<ul>
<li><h5 id="执行命令后，会提示你输入初始化路径、项目名、项目描述和主题配置等等，我们这里就全部设置为默认"><a href="#执行命令后，会提示你输入初始化路径、项目名、项目描述和主题配置等等，我们这里就全部设置为默认" class="headerlink" title="执行命令后，会提示你输入初始化路径、项目名、项目描述和主题配置等等，我们这里就全部设置为默认"></a>执行命令后，会提示你输入初始化路径、项目名、项目描述和主题配置等等，我们这里就全部设置为默认</h5></li>
<li><h5 id="这一步执行完毕后，会在本地指定路径生成-VitePress-文档站点目录，效果如下："><a href="#这一步执行完毕后，会在本地指定路径生成-VitePress-文档站点目录，效果如下：" class="headerlink" title="这一步执行完毕后，会在本地指定路径生成 VitePress 文档站点目录，效果如下："></a>这一步执行完毕后，会在本地指定路径生成 VitePress 文档站点目录，效果如下：</h5></li>
</ul>
<p><img src="http://blog.memory-life.xyz/image-20230704114539011.png" alt="image-20230704114539011"></p>
<ul>
<li><h5 id="有关该目录下文件作用以及相关配置，将会在《大道至简：快速搭建博客与文档站点的终极指南-3-0》一文中详细讲解到，接下来我们在本地启动文档站点"><a href="#有关该目录下文件作用以及相关配置，将会在《大道至简：快速搭建博客与文档站点的终极指南-3-0》一文中详细讲解到，接下来我们在本地启动文档站点" class="headerlink" title="有关该目录下文件作用以及相关配置，将会在《大道至简：快速搭建博客与文档站点的终极指南 3-0》一文中详细讲解到，接下来我们在本地启动文档站点"></a>有关该目录下文件作用以及相关配置，将会在《大道至简：快速搭建博客与文档站点的终极指南 3-0》一文中详细讲解到，接下来我们在本地启动文档站点</h5></li>
<li><h5 id="在该目录下，执行以下命令中的其中一条："><a href="#在该目录下，执行以下命令中的其中一条：" class="headerlink" title="在该目录下，执行以下命令中的其中一条："></a>在该目录下，执行以下命令中的其中一条：</h5></li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">npm run docs:dev<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">pnpm run docs:dev<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">yarn docs:dev<br></code></pre></td></tr></table></figure>

<ul>
<li><h5 id="文档站点在本地启动成功！效果如下："><a href="#文档站点在本地启动成功！效果如下：" class="headerlink" title="文档站点在本地启动成功！效果如下："></a>文档站点在本地启动成功！效果如下：</h5></li>
</ul>
<p><img src="http://blog.memory-life.xyz/image-20230704114926261.png" alt="image-20230704114926261"></p>
<p><img src="http://blog.memory-life.xyz/image-20230704115516440.png" alt="image-20230704115516440"></p>
<p><img src="http://blog.memory-life.xyz/image-20230704185140665.png" alt="image-20230704185140665"></p>
<ul>
<li><h5 id="我们可以看到，整个页面的结构和排版都是默认主题样式的"><a href="#我们可以看到，整个页面的结构和排版都是默认主题样式的" class="headerlink" title="我们可以看到，整个页面的结构和排版都是默认主题样式的"></a>我们可以看到，整个页面的结构和排版都是默认主题样式的</h5></li>
</ul>
<h1 id="主题配置-1"><a href="#主题配置-1" class="headerlink" title="主题配置"></a>主题配置</h1><h2 id="默认主题-1"><a href="#默认主题-1" class="headerlink" title="默认主题"></a>默认主题</h2><ul>
<li><h5 id="我们可以在主题官网里找到相关配置，在默认主题的基础上，定制自己的主题风格"><a href="#我们可以在主题官网里找到相关配置，在默认主题的基础上，定制自己的主题风格" class="headerlink" title="我们可以在主题官网里找到相关配置，在默认主题的基础上，定制自己的主题风格"></a>我们可以在主题官网里找到相关配置，在默认主题的基础上，定制自己的主题风格</h5></li>
<li><h5 id="VitePress-官网主题配置：使用自定义主题-维特新闻-vitepress-dev"><a href="#VitePress-官网主题配置：使用自定义主题-维特新闻-vitepress-dev" class="headerlink" title="VitePress 官网主题配置：使用自定义主题 |维特新闻 (vitepress.dev)"></a>VitePress 官网主题配置：<a target="_blank" rel="noopener" href="https://vitepress.dev/guide/custom-theme">使用自定义主题 |维特新闻 (vitepress.dev)</a></h5></li>
<li><h5 id="VuePress-官网主题配置：VuePress-自定义主题-VuePress-中文网-caibaojian-com"><a href="#VuePress-官网主题配置：VuePress-自定义主题-VuePress-中文网-caibaojian-com" class="headerlink" title="VuePress 官网主题配置：VuePress 自定义主题 - VuePress 中文网 (caibaojian.com)"></a>VuePress 官网主题配置：<a target="_blank" rel="noopener" href="http://caibaojian.com/vuepress/guide/custom-themes.html">VuePress 自定义主题 - VuePress 中文网 (caibaojian.com)</a></h5></li>
<li><h5 id="相关指导资料："><a href="#相关指导资料：" class="headerlink" title="相关指导资料："></a>相关指导资料：</h5></li>
<li><h5 id="73-条消息-vuepress-自定义主题开发-超简单模式vitepress-主题贝茵斯都的博客-CSDN-博客"><a href="#73-条消息-vuepress-自定义主题开发-超简单模式vitepress-主题贝茵斯都的博客-CSDN-博客" class="headerlink" title="(73 条消息) vuepress 自定义主题开发-超简单模式vitepress 主题贝茵斯都的博客-CSDN 博客"></a><a target="_blank" rel="noopener" href="https://blog.csdn.net/weixin_40532650/article/details/116064378">(73 条消息) vuepress 自定义主题开发-超简单模式<em>vitepress 主题</em>贝茵斯都的博客-CSDN 博客</a></h5></li>
<li><h5 id="VuePress：主题和插件介绍-w3cschool-cn"><a href="#VuePress：主题和插件介绍-w3cschool-cn" class="headerlink" title="VuePress：主题和插件介绍 (w3cschool.cn)"></a><a target="_blank" rel="noopener" href="https://m.w3cschool.cn/article/37890763.html">VuePress：主题和插件介绍 (w3cschool.cn)</a></h5></li>
</ul>
<h2 id="第三方主题-1"><a href="#第三方主题-1" class="headerlink" title="第三方主题"></a>第三方主题</h2><ul>
<li><h5 id="或者选择使用-VuePress-的第三方主题，VuePress-提供了许多优秀的第三方主题供我们使用"><a href="#或者选择使用-VuePress-的第三方主题，VuePress-提供了许多优秀的第三方主题供我们使用" class="headerlink" title="或者选择使用 VuePress 的第三方主题，VuePress 提供了许多优秀的第三方主题供我们使用"></a>或者选择使用 VuePress 的第三方主题，VuePress 提供了许多优秀的第三方主题供我们使用</h5></li>
<li><h5 id="Home-vuepress-theme-hope-vuejs-press"><a href="#Home-vuepress-theme-hope-vuejs-press" class="headerlink" title="Home | vuepress-theme-hope (vuejs.press)"></a><a target="_blank" rel="noopener" href="https://theme-hope.vuejs.press/">Home | vuepress-theme-hope (vuejs.press)</a></h5></li>
<li><h5 id="vuepress-theme-blog-material-npm-npmjs-com"><a href="#vuepress-theme-blog-material-npm-npmjs-com" class="headerlink" title="vuepress-theme-blog-material - npm (npmjs.com)"></a><a target="_blank" rel="noopener" href="https://www.npmjs.com/package/vuepress-theme-blog-material/v/0.0.4">vuepress-theme-blog-material - npm (npmjs.com)</a></h5></li>
<li><h5 id="vuepress-theme-vdoing-xugaoyi-com"><a href="#vuepress-theme-vdoing-xugaoyi-com" class="headerlink" title="vuepress-theme-vdoing (xugaoyi.com)"></a><a target="_blank" rel="noopener" href="https://doc.xugaoyi.com/">vuepress-theme-vdoing (xugaoyi.com)</a></h5></li>
<li><h5 id="这些主题可以看官方文档，自己玩玩，这里不详细介绍"><a href="#这些主题可以看官方文档，自己玩玩，这里不详细介绍" class="headerlink" title="这些主题可以看官方文档，自己玩玩，这里不详细介绍"></a>这些主题可以看官方文档，自己玩玩，这里不详细介绍</h5></li>
<li><h5 id="我们这里以-vuepress-theme-hope-为例，下载安装该主题，执行以下两条命令其一："><a href="#我们这里以-vuepress-theme-hope-为例，下载安装该主题，执行以下两条命令其一：" class="headerlink" title="我们这里以 vuepress-theme-hope 为例，下载安装该主题，执行以下两条命令其一："></a>我们这里以 vuepress-theme-hope 为例，下载安装该主题，执行以下两条命令其一：</h5></li>
</ul>
<figure class="highlight cmake"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs cmake">pnpm create vuepress-theme-hope hope-<span class="hljs-keyword">project</span>		<span class="hljs-comment">#该目录下直接下载安装主题</span><br></code></pre></td></tr></table></figure>

<figure class="highlight livecodeserver"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs livecodeserver">pnpm <span class="hljs-built_in">create</span> vuepress-theme-hope <span class="hljs-built_in">add</span> .				<span class="hljs-comment">#空目录下下载安装主题</span><br></code></pre></td></tr></table></figure>

<ul>
<li><h5 id="执行命令，安装过程中会有提示，我们这里都选择默认，如图所示："><a href="#执行命令，安装过程中会有提示，我们这里都选择默认，如图所示：" class="headerlink" title="执行命令，安装过程中会有提示，我们这里都选择默认，如图所示："></a>执行命令，安装过程中会有提示，我们这里都选择默认，如图所示：</h5></li>
</ul>
<p><img src="http://blog.memory-life.xyz/image-20230704175808597.png" alt="image-20230704175808597"></p>
<ul>
<li><h5 id="安装完成，在-hope-project-目录下执行以下任意一条命令，在本地开启文档站点服务"><a href="#安装完成，在-hope-project-目录下执行以下任意一条命令，在本地开启文档站点服务" class="headerlink" title="安装完成，在 hope-project 目录下执行以下任意一条命令，在本地开启文档站点服务"></a>安装完成，在 hope-project 目录下执行以下任意一条命令，在本地开启文档站点服务</h5></li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">npm run docs:dev<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">pnpm run docs:dev<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">yarn docs:dev<br></code></pre></td></tr></table></figure>

<ul>
<li><h5 id="效果如下："><a href="#效果如下：" class="headerlink" title="效果如下："></a>效果如下：</h5></li>
</ul>
<p><img src="http://blog.memory-life.xyz/image-20230704201042950.png" alt="image-20230704201042950"></p>
<hr>
<p><img src="http://blog.memory-life.xyz/image-20230704201106296.png" alt="image-20230704201106296"></p>
<ul>
<li><h5 id="基本的文档站点主题配置完成！"><a href="#基本的文档站点主题配置完成！" class="headerlink" title="基本的文档站点主题配置完成！"></a>基本的文档站点主题配置完成！</h5></li>
</ul>
<h1 id="站点生成器"><a href="#站点生成器" class="headerlink" title="站点生成器"></a>站点生成器</h1><ol>
<li><h5 id="vuepress（支持-vue-语法、插件丰富）（2023-08-22-午）"><a href="#vuepress（支持-vue-语法、插件丰富）（2023-08-22-午）" class="headerlink" title="vuepress（支持 vue 语法、插件丰富）（2023/08/22 午）"></a>vuepress（支持 vue 语法、插件丰富）（2023/08/22 午）</h5></li>
<li><h5 id="docsify（简单易用、插件多、轻量）"><a href="#docsify（简单易用、插件多、轻量）" class="headerlink" title="docsify（简单易用、插件多、轻量）"></a>docsify（简单易用、插件多、轻量）</h5></li>
<li><h5 id="hugo（主题略少）"><a href="#hugo（主题略少）" class="headerlink" title="hugo（主题略少）"></a>hugo（主题略少）</h5></li>
<li><h5 id="hexo（主题略少）"><a href="#hexo（主题略少）" class="headerlink" title="hexo（主题略少）"></a>hexo（主题略少）</h5></li>
<li><h5 id="vitepress"><a href="#vitepress" class="headerlink" title="vitepress"></a>vitepress</h5></li>
<li><h5 id="storybook（展示组件库）"><a href="#storybook（展示组件库）" class="headerlink" title="storybook（展示组件库）"></a>storybook（展示组件库）</h5></li>
<li><h5 id="wordpress（搭建个人博客）"><a href="#wordpress（搭建个人博客）" class="headerlink" title="wordpress（搭建个人博客）"></a>wordpress（搭建个人博客）</h5></li>
<li><h5 id="docute"><a href="#docute" class="headerlink" title="docute"></a>docute</h5></li>
<li><h5 id="dumi（React-展示项目文档，展示组件库）"><a href="#dumi（React-展示项目文档，展示组件库）" class="headerlink" title="dumi（React 展示项目文档，展示组件库）"></a>dumi（React 展示项目文档，展示组件库）</h5></li>
<li><h5 id="jekyll"><a href="#jekyll" class="headerlink" title="jekyll"></a>jekyll</h5></li>
<li><h5 id="gatsby"><a href="#gatsby" class="headerlink" title="gatsby"></a>gatsby</h5></li>
</ol>
<h1 id="评论功能"><a href="#评论功能" class="headerlink" title="评论功能"></a>评论功能</h1><blockquote>
<p>2024 年 7 月 17 日</p>
</blockquote>
<p>🌭 推荐阅读：</p>
<p><a target="_blank" rel="noopener" href="https://www.cnblogs.com/guoapeng/p/17627621.html">Hexo 博客添加评论功能 - eagle.supper - 博客园 (cnblogs.com)</a></p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/Mo_0214/article/details/137501214">Hexo giscus 配置评论功能_hexo 博客 giscus-CSDN 博客</a></p>
<p><a target="_blank" rel="noopener" href="https://cloud.tencent.com/developer/article/1953268">hexo 博客的评论功能-腾讯云开发者社区-腾讯云 (tencent.com)</a></p>
<p><a target="_blank" rel="noopener" href="https://developer.aliyun.com/article/1400564">Hexo 博客添加 GitHub 评论功能-阿里云开发者社区 (aliyun.com)</a></p>
<p><a target="_blank" rel="noopener" href="https://www.jianshu.com/p/4eef542107c9?utm_campaign=haruki&utm_content=note&utm_medium=writer_share&utm_source=weibo">为使用 hexo 搭建的博客加入评论系统 gitalk - 简书 (jianshu.com)</a></p>
<p><a target="_blank" rel="noopener" href="https://www.jianshu.com/p/702a7aec4d00">Hexo 搭建博客系列：（五）Hexo 添加不蒜子和 LeanCloud 统计无标题文章 - 简书 (jianshu.com)</a></p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/DaphneOdera17/article/details/138255181">hexo 魔改 | 添加 Valine 评论系统_hexo butterfly valine 评论-CSDN 博客</a></p>
<p>🍖 尤其推荐下面这篇文档，因为我使用的 Hexo 建站主题是 Fluid ，不同主题的评论插件相关配置还是有些许出入。</p>
<p><a target="_blank" rel="noopener" href="https://cloud.tencent.com/developer/article/1923519">hexo-fluid 添加 valine 评论记录-腾讯云开发者社区-腾讯云 (tencent.com)</a></p>
<h2 id="基本实现"><a href="#基本实现" class="headerlink" title="基本实现"></a>基本实现</h2><blockquote>
<p>2024 年 7 月 17 日</p>
</blockquote>
<p><a target="_blank" rel="noopener" href="https://valine.js.org/">介绍 | Valine 一款快速、简洁且高效的无后端评论系统。</a></p>
<p><img src="http://blog.memory-life.xyz/image-20240717104524454.png" alt="image-20240717104524454"></p>
<p>我们使用 Valine 无后端评论系统，这篇文档写的相当详细了，跟着教程走就行。</p>
<p><a target="_blank" rel="noopener" href="https://console.leancloud.cn/apps">LeanCloud</a></p>
<p>这个网站下注册登陆账号，再经过实名制和邮箱验证之后，创建的应用就可以正常使用了。</p>
<p><img src="http://blog.memory-life.xyz/image-20240717103940530.png"></p>
<p>进入<a target="_blank" rel="noopener" href="https://console.leancloud.cn/apps">控制台</a>后点击左上角<code>创建应用</code>：</p>
<p>创建应用：</p>
<p><img src="http://blog.memory-life.xyz/image-20240717104432947.png" alt="image-20240717104432947"></p>
<p><img src="http://blog.memory-life.xyz/image-20240717105115111.png" alt="image-20240717105115111"></p>
<p>应用创建好以后，进入刚刚创建的应用，选择左边的<code>设置</code>&gt;<code>应用凭证</code>，然后就能看到你的<code>AppID</code>和<code>AppKey</code>了：</p>
<p><img src="http://blog.memory-life.xyz/image-20240717105433523.png" alt="image-20240717105433523"></p>
<p><img src="http://blog.memory-life.xyz/image-20240717105403514.png" alt="image-20240717105403514"></p>
<p>然后在博客主题的 <code>_config.yml</code> 下做好相关评论插件的配置：</p>
<figure class="highlight yml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><code class="hljs yml"><span class="hljs-comment"># 评论插件</span><br><span class="hljs-comment"># Comment plugin</span><br><span class="hljs-attr">comments:</span><br>  <span class="hljs-attr">enable:</span> <span class="hljs-literal">true</span><br>  <span class="hljs-comment"># 指定的插件，需要同时设置对应插件的必要参数</span><br>  <span class="hljs-comment"># The specified plugin needs to set the necessary parameters at the same time</span><br>  <span class="hljs-comment"># Options: utterances | disqus | gitalk | valine | waline | changyan | livere | remark42 | twikoo | cusdis | giscus</span><br>  <span class="hljs-attr">type:</span> <span class="hljs-string">valine</span><br></code></pre></td></tr></table></figure>

<p>搜索 <code> valine</code>，可看到如下，将 <code>enbled:true</code>, 并填写 <code>appid</code>， <code>appkey</code>和 REST API 服务地址。</p>
<figure class="highlight yml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br></pre></td><td class="code"><pre><code class="hljs yml"><span class="hljs-comment"># Valine</span><br><span class="hljs-comment"># 基于 LeanCloud</span><br><span class="hljs-comment"># Based on LeanCloud</span><br><span class="hljs-comment"># See: https://valine.js.org/</span><br><span class="hljs-attr">valine:</span><br>  <span class="hljs-attr">appId:</span> <span class="hljs-string">T1hUHH9Ks1ggG9DBE3HgUPpV-gzGzoHsz</span><br>  <span class="hljs-attr">appKey:</span> <span class="hljs-string">XFkgzzvzNo3J3uNCbBiSOFKc</span><br>  <span class="hljs-attr">path:</span> <span class="hljs-string">window.location.pathname</span><br>  <span class="hljs-attr">placeholder:</span><br>  <span class="hljs-attr">avatar:</span> <span class="hljs-string">&quot;retro&quot;</span><br>  <span class="hljs-attr">meta:</span> [<span class="hljs-string">&quot;nick&quot;</span>, <span class="hljs-string">&quot;mail&quot;</span>, <span class="hljs-string">&quot;link&quot;</span>]<br>  <span class="hljs-attr">requiredFields:</span> []<br>  <span class="hljs-attr">pageSize:</span> <span class="hljs-number">10</span><br>  <span class="hljs-attr">lang:</span> <span class="hljs-string">&quot;zh-CN&quot;</span><br>  <span class="hljs-attr">highlight:</span> <span class="hljs-literal">false</span><br>  <span class="hljs-attr">recordIP:</span> <span class="hljs-literal">false</span><br>  <span class="hljs-attr">serverURLs:</span> <span class="hljs-string">https://t1huhh9k.lc-cn-n1-shared.com</span><br>  <span class="hljs-attr">emojiCDN:</span><br>  <span class="hljs-attr">emojiMaps:</span><br>  <span class="hljs-attr">enableQQ:</span> <span class="hljs-literal">false</span><br></code></pre></td></tr></table></figure>

<p>还需要设置安全域名，用来维护数据安全，不过暂时我用不到的：</p>
<p><img src="http://blog.memory-life.xyz/image-20240717114125237.png" alt="image-20240717114125237"></p>
<p>再次尝试部署博客，可以看到博文的评论功能已经开启了：</p>
<p><img src="http://blog.memory-life.xyz/image-20240717114301853.png" alt="image-20240717114301853"></p>
<p>可以自由选择评论昵称，邮箱地址，输入评论信息就能直接在文章下发表评论了。</p>
<p>我叫来我的好兄弟测试了一番，评论功能一切正常，我这个站主还能删评论的，真不错：</p>
<p><img src="http://blog.memory-life.xyz/image-20240717114525124.png" alt="image-20240717114525124"></p>
<p><a target="_blank" rel="noopener" href="https://www.jianshu.com/p/5f055fee4f8b">在网页中引入无后端的 valine 评论系统，使用 leancloud 作为免费存储和评论管理 - 简书 (jianshu.com)</a></p>
<p><img src="http://blog.memory-life.xyz/image-20240717114554410.png" alt="image-20240717114554410"></p>
<h2 id="样式美化"><a href="#样式美化" class="headerlink" title="样式美化"></a>样式美化</h2><blockquote>
<p>2024 年 7 月 17 日</p>
</blockquote>
<p>把 valine.ejs 下的这段代码，粘贴到 about.ejs 最后，就能实现关于页面的评论功能了：</p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br></pre></td><td class="code"><pre><code class="hljs yaml">&lt;%<span class="language-ruby"> <span class="hljs-keyword">if</span> (theme.valine.appId &amp;&amp; theme.valine.appKey) &#123; </span>%&gt;<br>  <span class="hljs-string">&lt;div</span> <span class="hljs-string">id=&quot;valine&quot;&gt;&lt;/div&gt;</span><br>  <span class="hljs-string">&lt;script</span> <span class="hljs-string">type=&quot;text/javascript&quot;&gt;</span><br>    <span class="hljs-string">Fluid.utils.loadComments(&#x27;#valine&#x27;,</span> <span class="hljs-string">function()</span> &#123;<br>      <span class="hljs-string">Fluid.utils.createScript(&#x27;&lt;%=</span> <span class="hljs-string">url_join(theme.static_prefix.valine</span>, <span class="hljs-string">&#x27;https://cdn.jsdelivr.net/gh/HCLonely/Valine@latest/dist/Valine.min.js&#x27;</span><span class="hljs-string">)</span> <span class="hljs-string">%&gt;&#x27;</span>, <span class="hljs-string">function()</span> &#123;<br>        <span class="hljs-string">var</span> <span class="hljs-string">options</span> <span class="hljs-string">=</span> <span class="hljs-string">Object.assign(</span><br>          &lt;%-<span class="language-ruby"> <span class="hljs-variable constant_">JSON</span>.stringify(theme.valine |<span class="hljs-params"></span>| &#123;&#125;) </span>%&gt;,<br>          &#123;<br>            <span class="hljs-attr">el:</span> <span class="hljs-string">&quot;#valine&quot;</span>,<br>            <span class="hljs-attr">path:</span> &lt;%=<span class="language-ruby"> theme.valine.path </span>%&gt;,<br>            <span class="hljs-attr">master:</span> <span class="hljs-string">&quot;&lt;%= theme.valine.master%&gt;&quot;</span>,<br>            <span class="hljs-attr">friends:</span> <span class="hljs-string">&quot;&lt;%= theme.valine.friends%&gt;&quot;</span>,<br>            <span class="hljs-attr">tagMeta:</span> [<span class="hljs-string">&quot;博主&quot;</span>,<span class="hljs-string">&quot;友人&quot;</span>,<span class="hljs-string">&quot;访客&quot;</span>],<br>          &#125;<br>        <span class="hljs-string">)</span><br>        <span class="hljs-string">new</span> <span class="hljs-string">Valine(options);</span><br>        <span class="hljs-string">Fluid.utils.waitElementVisible(&#x27;#valine</span> <span class="hljs-string">.vcontent&#x27;</span>, <span class="hljs-string">()</span> <span class="hljs-string">=&gt;</span> &#123;<br>          <span class="hljs-string">var</span> <span class="hljs-string">imgSelector</span> <span class="hljs-string">=</span> <span class="hljs-string">&#x27;#valine .vcontent img:not(.vemoji)&#x27;</span><span class="hljs-string">;</span><br>          <span class="hljs-string">Fluid.plugins.imageCaption(imgSelector);</span><br>          <span class="hljs-string">Fluid.plugins.fancyBox(imgSelector);</span><br>        &#125;<span class="hljs-string">)</span><br>      &#125;<span class="hljs-string">);</span><br>    &#125;<span class="hljs-string">);</span><br>  <span class="hljs-string">&lt;/script&gt;</span><br>  <span class="hljs-string">&lt;noscript&gt;Please</span> <span class="hljs-string">enable</span> <span class="hljs-string">JavaScript</span> <span class="hljs-string">to</span> <span class="hljs-string">view</span> <span class="hljs-string">the</span> <span class="hljs-string">comments&lt;/noscript&gt;</span><br>&lt;%<span class="language-ruby"> &#125; </span>%&gt;<br></code></pre></td></tr></table></figure>

<p><a target="_blank" rel="noopener" href="https://www.erenship.com/posts/40222.html#%E5%85%B3%E4%BA%8E%E9%A1%B5%E6%B7%BB%E5%8A%A0%E8%AF%84%E8%AE%BA">Hexo’s Fluid 主题私人定制（持续更新） - Eren の 宇宙船 (erenship.com)</a></p>
<figure class="highlight html"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br></pre></td><td class="code"><pre><code class="hljs html"><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">id</span>=<span class="hljs-string">&quot;vcomments&quot;</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span><br><span class="hljs-tag">&lt;<span class="hljs-name">script</span> <span class="hljs-attr">type</span>=<span class="hljs-string">&quot;text/javascript&quot;</span>&gt;</span><span class="language-javascript"></span><br><span class="language-javascript">  <span class="hljs-keyword">function</span> <span class="hljs-title function_">loadValine</span>(<span class="hljs-params"></span>) &#123;</span><br><span class="language-javascript">    <span class="hljs-title function_">addScript</span>(</span><br><span class="language-javascript">      <span class="hljs-string">&quot;https://cdn.staticfile.org/valine/1.4.14/Valine.min.js&quot;</span>,</span><br><span class="language-javascript">      <span class="hljs-keyword">function</span> (<span class="hljs-params"></span>) &#123;</span><br><span class="language-javascript">        <span class="hljs-keyword">new</span> <span class="hljs-title class_">Valine</span>(&#123;</span><br><span class="language-javascript">          <span class="hljs-attr">el</span>: <span class="hljs-string">&quot;#vcomments&quot;</span>,</span><br><span class="language-javascript">          <span class="hljs-attr">app_id</span>: <span class="hljs-string">&quot;T1hUHH9Ks1ggG9DBE3HgUPpV-gzGzoHsz&quot;</span>,</span><br><span class="language-javascript">          <span class="hljs-attr">app_key</span>: <span class="hljs-string">&quot;XFkgzzvzNo3J3uNCbBiSOFKc&quot;</span>,</span><br><span class="language-javascript">          <span class="hljs-attr">placeholder</span>: <span class="hljs-string">&quot;留下点什么叭... ᶘ ᵒᴥᵒᶅ（自行修改）&quot;</span>,</span><br><span class="language-javascript">          <span class="hljs-attr">path</span>: <span class="hljs-variable language_">window</span>.<span class="hljs-property">location</span>.<span class="hljs-property">pathname</span>,</span><br><span class="language-javascript">          <span class="hljs-attr">avatar</span>: <span class="hljs-string">&quot;monsterid&quot;</span>,</span><br><span class="language-javascript">          <span class="hljs-attr">meta</span>: [<span class="hljs-string">&quot;nick&quot;</span>, <span class="hljs-string">&quot;mail&quot;</span>, <span class="hljs-string">&quot;link&quot;</span>],</span><br><span class="language-javascript">          <span class="hljs-attr">pageSize</span>: <span class="hljs-string">&quot;10&quot;</span>,</span><br><span class="language-javascript">          <span class="hljs-attr">lang</span>: <span class="hljs-string">&quot;zh-CN&quot;</span>,</span><br><span class="language-javascript">          <span class="hljs-attr">highlight</span>: <span class="hljs-literal">false</span>,</span><br><span class="language-javascript">          <span class="hljs-attr">recordIP</span>: <span class="hljs-literal">false</span>,</span><br><span class="language-javascript">          <span class="hljs-attr">serverURLs</span>: <span class="hljs-string">&quot;https://t1huhh9k.lc-cn-n1-shared.com&quot;</span>,</span><br><span class="language-javascript">        &#125;);</span><br><span class="language-javascript">      &#125;</span><br><span class="language-javascript">    );</span><br><span class="language-javascript">  &#125;</span><br><span class="language-javascript">  <span class="hljs-title function_">createObserver</span>(loadValine, <span class="hljs-string">&quot;vcomments&quot;</span>);</span><br><span class="language-javascript"></span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span><br><span class="hljs-tag">&lt;<span class="hljs-name">noscript</span></span><br><span class="hljs-tag">  &gt;</span>Please enable JavaScript to view the<br>  <span class="hljs-tag">&lt;<span class="hljs-name">a</span></span><br><span class="hljs-tag">    <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;https://valine.js.org&quot;</span></span><br><span class="hljs-tag">    <span class="hljs-attr">target</span>=<span class="hljs-string">&quot;_blank&quot;</span></span><br><span class="hljs-tag">    <span class="hljs-attr">rel</span>=<span class="hljs-string">&quot;nofollow noopener noopener&quot;</span></span><br><span class="hljs-tag">    &gt;</span>comments powered by Valine.&lt;/a<br>  &gt;&lt;/noscript<br>&gt;<br></code></pre></td></tr></table></figure>

<p><a target="_blank" rel="noopener" href="https://md5jiami.bmcx.com/">MD5 在线加密 - MD5 加密工具 - MD5 在线生成 (bmcx.com)</a></p>
<p>研究了一中午，评论功能不需要优化了，本来就是为了无需登录而设置的，允许读取 QQ 信息头像也不错的。</p>
<p>自定义背景：</p>
<p>在 themes/next/layout/_partials/footer.ejs 中引入：</p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-string">&lt;!--</span> <span class="hljs-string">评论框美化</span> <span class="hljs-string">--&gt;</span><br><span class="hljs-string">&lt;style&gt;</span><br>    <span class="hljs-comment">#comments .veditor&#123;</span><br>        <span class="hljs-attr">min-height:</span> <span class="hljs-string">10rem;</span><br>        <span class="hljs-attr">background-image:</span> <span class="hljs-string">url(http://blog.memory-life.xyz/bradge.jpg);</span><br>        <span class="hljs-attr">background-size:</span> <span class="hljs-string">contain;</span><br>        <span class="hljs-attr">background-repeat:</span> <span class="hljs-literal">no</span><span class="hljs-string">-repeat;</span><br>        <span class="hljs-attr">background-position:</span> <span class="hljs-string">right;</span><br>        <span class="hljs-attr">background-color:</span> <span class="hljs-string">rgba(255,255,255,0);</span><br>        <span class="hljs-attr">resize:</span> <span class="hljs-string">none;&#125;</span><br><span class="hljs-string">&lt;/style&gt;</span><br></code></pre></td></tr></table></figure>

<p><img src="http://blog.memory-life.xyz/image-20240717192732453.png" alt="image-20240717192732453"></p>
<h2 id="浏览量"><a href="#浏览量" class="headerlink" title="浏览量"></a>浏览量</h2><blockquote>
<p>2024 年 7 月 17 日</p>
</blockquote>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/qq_48759664/article/details/119460188">Hexo-fluid 主题设置统计博客阅读量_hexo-theme-fluid 字数统计-CSDN 博客</a></p>
<p><a target="_blank" rel="noopener" href="https://www.jianshu.com/p/702a7aec4d00">Hexo 搭建博客系列：（五）Hexo 添加不蒜子和 LeanCloud 统计无标题文章 - 简书 (jianshu.com)</a></p>
<figure class="highlight yml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><code class="hljs yml"><span class="hljs-comment"># 浏览量计数</span><br><span class="hljs-comment"># Number of visits</span><br><span class="hljs-attr">views:</span><br>  <span class="hljs-attr">enable:</span> <span class="hljs-literal">true</span><br>  <span class="hljs-comment"># 统计数据来源</span><br>  <span class="hljs-comment"># Data Source</span><br>  <span class="hljs-comment"># Options: busuanzi | leancloud</span><br>  <span class="hljs-attr">source:</span> <span class="hljs-string">&quot;leancloud&quot;</span><br>  <span class="hljs-attr">format:</span> <span class="hljs-string">&quot;&#123;&#125; 次&quot;</span><br></code></pre></td></tr></table></figure>

<figure class="highlight yml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br></pre></td><td class="code"><pre><code class="hljs yml"><span class="hljs-comment"># LeanCloud 计数统计，可用于 PV UV 展示，如果 `web_analytics: enable` 没有开启，PV UV 展示只会查询不会增加</span><br><span class="hljs-comment"># LeanCloud count statistics, which can be used for PV UV display. If `web_analytics: enable` is false, PV UV display will only query and not increase</span><br><span class="hljs-attr">leancloud:</span><br>  <span class="hljs-attr">appId:</span> <span class="hljs-string">T1hUHH9Ks1ggG9DBE3HgUPpV-gzGzoHsz</span><br>  <span class="hljs-attr">appKey:</span> <span class="hljs-string">XFkgzzvzNo3J3uNCbBiSOFKc</span><br>  <span class="hljs-comment"># REST API 服务器地址，国际版不填</span><br>  <span class="hljs-comment"># Only the Chinese mainland users need to set</span><br>  <span class="hljs-attr">server_url:</span> <span class="hljs-string">https://t1huhh9k.lc-cn-n1-shared.com</span><br>  <span class="hljs-comment"># 统计页面时获取路径的属性</span><br>  <span class="hljs-comment"># Get the attribute of the page path during statistics</span><br>  <span class="hljs-attr">path:</span> <span class="hljs-string">window.location.pathname</span><br>  <span class="hljs-comment"># 开启后不统计本地路径( localhost 与 127.0.0.1 )</span><br>  <span class="hljs-comment"># If true, ignore localhost &amp; 127.0.0.1</span><br>  <span class="hljs-attr">ignore_local:</span> <span class="hljs-literal">false</span><br></code></pre></td></tr></table></figure>

<p>配置完成后，部署博客。从部署的过程就能看出来，访问次数统计其实已经生效了：</p>
<p><img src="http://blog.memory-life.xyz/image-20240717120705254.png" alt="image-20240717120705254"></p>
<p><img src="http://blog.memory-life.xyz/image-20240717120837928.png" alt="image-20240717120837928"></p>
<p>好像还不管用。。。</p>
<p><a target="_blank" rel="noopener" href="https://valine.js.org/">介绍 | Valine 一款快速、简洁且高效的无后端评论系统。</a></p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-string">&lt;!--</span> <span class="hljs-string">id</span> <span class="hljs-string">将作为查询条件</span> <span class="hljs-string">--&gt;</span><br><span class="hljs-string">&lt;span</span> <span class="hljs-string">id=&quot;&lt;Your/Path/Name&gt;&quot;</span> <span class="hljs-string">class=&quot;leancloud_visitors&quot;</span> <span class="hljs-string">data-flag-title=&quot;Your</span> <span class="hljs-string">Article</span> <span class="hljs-string">Title&quot;&gt;</span><br><span class="hljs-string">&lt;em</span> <span class="hljs-string">class=&quot;post-meta-item-text&quot;&gt;阅读量</span> <span class="hljs-string">&lt;/em&gt;</span><br><span class="hljs-string">&lt;i</span> <span class="hljs-string">class=&quot;leancloud-visitors-count&quot;&gt;1000000&lt;/i&gt;</span><br><span class="hljs-string">&lt;/span&gt;</span><br></code></pre></td></tr></table></figure>

<h2 id="身份标识"><a href="#身份标识" class="headerlink" title="身份标识"></a>身份标识</h2><blockquote>
<p>2024 年 7 月 17 日</p>
</blockquote>
<p><a target="_blank" rel="noopener" href="https://www.erenship.com/posts/40222.html#%E8%AF%84%E8%AE%BA%E6%A0%B7%E5%BC%8F%E7%BE%8E%E5%8C%96">Hexo’s Fluid 主题私人定制（持续更新） - Eren の 宇宙船 (erenship.com)</a></p>
<p><a target="_blank" rel="noopener" href="https://md5jiami.bmcx.com/">MD5 在线加密 - MD5 加密工具 - MD5 在线生成 (bmcx.com)</a></p>
<p>分别加密自己的邮箱号和好友的邮箱号，得到 MD5 字符串：</p>
<p><img src="http://blog.memory-life.xyz/image-20240717205234041.png" alt="image-20240717205234041"></p>
<p>更新配置：</p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-comment"># Valine</span><br><span class="hljs-comment"># 基于 LeanCloud</span><br><span class="hljs-comment"># Based on LeanCloud</span><br><span class="hljs-comment"># See: https://valine.js.org/</span><br><span class="hljs-attr">valine:</span><br>  <span class="hljs-attr">appId:</span> <span class="hljs-string">T1hUHH9Ks1ggG9DBE3HgUPpV-gzGzoHsz</span><br>  <span class="hljs-attr">appKey:</span> <span class="hljs-string">XFkgzzvzNo3J3uNCbBiSOFKc</span><br>  <span class="hljs-attr">path:</span> <span class="hljs-string">window.location.pathname</span><br>  <span class="hljs-attr">placeholder:</span> <span class="hljs-string">填取QQ邮箱号后评论，支持读取头像以及新消息提醒，留下点什么叭...</span> <span class="hljs-string">ᶘ</span> <span class="hljs-string">ᵒᴥᵒᶅ</span><br>  <span class="hljs-attr">avatar:</span> <span class="hljs-string">Gravatar</span><br>  <span class="hljs-attr">meta:</span> [<span class="hljs-string">&quot;nick&quot;</span>, <span class="hljs-string">&quot;mail&quot;</span>, <span class="hljs-string">&quot;link&quot;</span>]<br>  <span class="hljs-attr">requiredFields:</span> []<br>  <span class="hljs-attr">pageSize:</span> <span class="hljs-number">10</span><br>  <span class="hljs-attr">lang:</span> <span class="hljs-string">&quot;zh-CN&quot;</span><br>  <span class="hljs-attr">highlight:</span> <span class="hljs-literal">true</span><br>  <span class="hljs-attr">recordIP:</span> <span class="hljs-literal">false</span><br>  <span class="hljs-attr">serverURLs:</span> <span class="hljs-string">https://t1huhh9k.lc-cn-n1-shared.com</span><br>  <span class="hljs-attr">emojiCDN:</span><br>  <span class="hljs-attr">emojiMaps:</span><br>  <span class="hljs-attr">enableQQ:</span> <span class="hljs-literal">true</span><br>  <span class="hljs-attr">master:</span> <span class="hljs-string">8c9b6d6637904da62d74d019cc6982de</span> <span class="hljs-comment"># 你邮箱的md5加密(百度md5在线加密)</span><br>  <span class="hljs-attr">friends:</span> <span class="hljs-string">0188229a9cfc284176ea9135cb9514cc</span> <span class="hljs-comment"># 好友邮箱的md5加密</span><br>  <span class="hljs-attr">visitor:</span> <span class="hljs-literal">true</span> <span class="hljs-comment"># 阅读量统计</span><br></code></pre></td></tr></table></figure>

<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br></pre></td><td class="code"><pre><code class="hljs yaml">&lt;%<span class="language-ruby"> <span class="hljs-keyword">if</span> (theme.valine.appId &amp;&amp; theme.valine.appKey) &#123; </span>%&gt;<br>  <span class="hljs-string">&lt;div</span> <span class="hljs-string">id=&quot;valine&quot;&gt;&lt;/div&gt;</span><br>  <span class="hljs-string">&lt;script</span> <span class="hljs-string">type=&quot;text/javascript&quot;&gt;</span><br>    <span class="hljs-string">Fluid.utils.loadComments(&#x27;#valine&#x27;,</span> <span class="hljs-string">function()</span> &#123;<br>      <span class="hljs-string">Fluid.utils.createScript(&#x27;&lt;%=</span> <span class="hljs-string">url_join(theme.static_prefix.valine</span>, <span class="hljs-string">&#x27;https://cdn.jsdelivr.net/gh/HCLonely/Valine@latest/dist/Valine.min.js&#x27;</span><span class="hljs-string">)</span> <span class="hljs-string">%&gt;&#x27;</span>, <span class="hljs-string">function()</span> &#123;<br>        <span class="hljs-string">var</span> <span class="hljs-string">options</span> <span class="hljs-string">=</span> <span class="hljs-string">Object.assign(</span><br>          &lt;%-<span class="language-ruby"> <span class="hljs-variable constant_">JSON</span>.stringify(theme.valine |<span class="hljs-params"></span>| &#123;&#125;) </span>%&gt;,<br>          &#123;<br>            <span class="hljs-attr">el:</span> <span class="hljs-string">&quot;#valine&quot;</span>,<br>            <span class="hljs-attr">path:</span> &lt;%=<span class="language-ruby"> theme.valine.path </span>%&gt;,<br>            <span class="hljs-attr">app_id:</span> <span class="hljs-string">&quot;&lt;%= theme.valine.appid %&gt;&quot;</span>,<br>            <span class="hljs-attr">app_key:</span> <span class="hljs-string">&quot;&lt;%= theme.valine.appkey %&gt;&quot;</span>,<br>            <span class="hljs-attr">placeholder:</span> <span class="hljs-string">&quot;&lt;%= theme.valine.placeholder %&gt;&quot;</span>,<br>            <span class="hljs-attr">avatar:</span> <span class="hljs-string">&quot;&lt;%= theme.valine.avatar %&gt;&quot;</span>,<br><br> 		   <span class="hljs-string">............................................</span><br><br>            <span class="hljs-attr">master:</span> <span class="hljs-string">&quot;&lt;%= theme.valine.master%&gt;&quot;</span>,<br>            <span class="hljs-attr">friends:</span> <span class="hljs-string">&quot;&lt;%= theme.valine.friends%&gt;&quot;</span>,<br>            <span class="hljs-attr">tagMeta:</span> [<span class="hljs-string">&quot;博主&quot;</span>,<span class="hljs-string">&quot;友人&quot;</span>,<span class="hljs-string">&quot;访客&quot;</span>],<br>            <span class="hljs-attr">visitor:</span> &lt;%=<span class="language-ruby"> theme.valine.visitor </span>%&gt; <span class="hljs-string">//</span> <span class="hljs-string">阅读量统计</span><br>          &#125;<br>        <span class="hljs-string">)</span><br>        <span class="hljs-string">new</span> <span class="hljs-string">Valine(options);</span><br>        <span class="hljs-string">Fluid.utils.waitElementVisible(&#x27;#valine</span> <span class="hljs-string">.vcontent&#x27;</span>, <span class="hljs-string">()</span> <span class="hljs-string">=&gt;</span> &#123;<br>          <span class="hljs-string">var</span> <span class="hljs-string">imgSelector</span> <span class="hljs-string">=</span> <span class="hljs-string">&#x27;#valine .vcontent img:not(.vemoji)&#x27;</span><span class="hljs-string">;</span><br>          <span class="hljs-string">Fluid.plugins.imageCaption(imgSelector);</span><br>          <span class="hljs-string">Fluid.plugins.fancyBox(imgSelector);</span><br>        &#125;<span class="hljs-string">)</span><br>      &#125;<span class="hljs-string">);</span><br>    &#125;<span class="hljs-string">);</span><br>  <span class="hljs-string">&lt;/script&gt;</span><br>  <span class="hljs-string">&lt;noscript&gt;Please</span> <span class="hljs-string">enable</span> <span class="hljs-string">JavaScript</span> <span class="hljs-string">to</span> <span class="hljs-string">view</span> <span class="hljs-string">the</span> <span class="hljs-string">comments&lt;/noscript&gt;</span><br>&lt;%<span class="language-ruby"> &#125; </span>%&gt;<br></code></pre></td></tr></table></figure>

<p>这样，<strong>博主</strong>、<strong>友人</strong>和<strong>访客</strong>的身份就能成功区分了：</p>
<p><img src="http://blog.memory-life.xyz/image-20240717202230250.png" alt="image-20240717202230250"></p>
<h2 id="自定义背景"><a href="#自定义背景" class="headerlink" title="自定义背景"></a>自定义背景</h2><blockquote>
<p>2024 年 7 月 17 日</p>
</blockquote>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/wugenqiang/article/details/105744843">Hexo NexT 评论系统 Valine 的使用_hexo next valine-CSDN 博客</a></p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><br><span class="hljs-string">&lt;!--</span> <span class="hljs-string">评论框美化</span> <span class="hljs-string">--&gt;</span><br><span class="hljs-string">&lt;style&gt;</span><br>    <span class="hljs-comment">#comments .veditor&#123;</span><br>        <span class="hljs-attr">min-height:</span> <span class="hljs-string">11rem;</span><br>        <span class="hljs-attr">background-image:</span> <span class="hljs-string">url(http://blog.memory-life.xyz/pathway0716.jpg);</span><br>        <span class="hljs-attr">background-size:</span> <span class="hljs-string">contain;</span><br>        <span class="hljs-attr">background-repeat:</span> <span class="hljs-literal">no</span><span class="hljs-string">-repeat;</span><br>        <span class="hljs-attr">background-position:</span> <span class="hljs-string">right;</span><br>        <span class="hljs-attr">background-color:</span> <span class="hljs-string">rgba(255,255,255,0);</span><br>        <span class="hljs-attr">resize:</span> <span class="hljs-string">none;&#125;</span><br><span class="hljs-string">&lt;/style&gt;</span><br></code></pre></td></tr></table></figure>

<p><img src="http://blog.memory-life.xyz/image-20240717202505652.png" alt="image-20240717202505652"></p>
<p>顺便了解下 CSS 基础语法，font-size 字体大小自适应：</p>
<p><a target="_blank" rel="noopener" href="https://www.yisu.com/ask/82855564.html">CSS 字体大小怎么实现自适应屏幕 - 问答 - 亿速云 (yisu.com)</a></p>
<ol>
<li>使用<code>rem</code>实现自适应屏幕：</li>
</ol>
<figure class="highlight css"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><code class="hljs css"><span class="hljs-selector-tag">html</span> &#123;<br>  <span class="hljs-attribute">font-size</span>: <span class="hljs-number">16px</span>; <span class="hljs-comment">/* 可根据需要设置根元素的字体大小 */</span><br>&#125;<br><span class="hljs-selector-tag">h1</span> &#123;<br>  <span class="hljs-attribute">font-size</span>: <span class="hljs-number">2rem</span>; <span class="hljs-comment">/* 相对于根元素的字体大小，此处为32px */</span><br>&#125;<br></code></pre></td></tr></table></figure>

<p>复制代码</p>
<ol>
<li>使用<code>em</code>实现自适应屏幕：</li>
</ol>
<figure class="highlight css"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><code class="hljs css"><span class="hljs-selector-tag">body</span> &#123;<br>  <span class="hljs-attribute">font-size</span>: <span class="hljs-number">16px</span>; <span class="hljs-comment">/* 可根据需要设置父元素的字体大小 */</span><br>&#125;<br><span class="hljs-selector-tag">h1</span> &#123;<br>  <span class="hljs-attribute">font-size</span>: <span class="hljs-number">2em</span>; <span class="hljs-comment">/* 相对于父元素的字体大小，此处为32px */</span><br>&#125;<br></code></pre></td></tr></table></figure>

<p>复制代码</p>
<ol>
<li>使用<code>vw</code>实现自适应屏幕：</li>
</ol>
<figure class="highlight css"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><code class="hljs css"><span class="hljs-selector-tag">h1</span> &#123;<br>  <span class="hljs-attribute">font-size</span>: <span class="hljs-number">5vw</span>; <span class="hljs-comment">/* 相对于视口宽度的百分比，此处为屏幕宽度的5% */</span><br>&#125;<br></code></pre></td></tr></table></figure>

<blockquote>
<p>2024 年 7 月 22 日</p>
</blockquote>
<p>关于页评论背景失败，不搞了就这样子吧。</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><code class="hljs ejs">&lt;!-- 评论框美化 --&gt;<br>&lt;style&gt;<br>    #valine&#123;<br>        height: 20vh;<br>        background-image: url(http://blog.memory-life.xyz/pathway0716.jpg);<br>        background-size: contain;<br>        background-repeat: no-repeat;<br>        background-position: right 6vh;<br>        background-color: rgba(255,255,255,0);<br>        resize: none;&#125;<br>&lt;/style&gt;<br></code></pre></td></tr></table></figure>

<p><img src="http://blog.memory-life.xyz/image-20240722111843833.png" alt="image-20240722111843833"></p>
<h2 id="自定义表情"><a href="#自定义表情" class="headerlink" title="自定义表情"></a>自定义表情</h2><blockquote>
<p>2024 年 7 月 17 日</p>
</blockquote>
<p><a target="_blank" rel="noopener" href="https://valine.js.org/emoji.html">自定义表情 | Valine 一款快速、简洁且高效的无后端评论系统。</a></p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-string">//</span> <span class="hljs-string">设置Bilibili表情包地址</span><br>            <span class="hljs-attr">emojiCDN:</span> <span class="hljs-string">&#x27;//i0.hdslb.com/bfs/emote/&#x27;</span><span class="hljs-string">,</span><br>            <span class="hljs-string">//</span> <span class="hljs-string">表情title和图片映射</span><br>            <span class="hljs-attr">emojiMaps:</span> &#123;<br>                <span class="hljs-attr">&quot;tv_doge&quot;:</span> <span class="hljs-string">&quot;6ea59c827c414b4a2955fe79e0f6fd3dcd515e24.png&quot;</span>,<br>                <span class="hljs-string">&quot;tv_亲亲&quot;</span><span class="hljs-string">:</span> <span class="hljs-string">&quot;a8111ad55953ef5e3be3327ef94eb4a39d535d06.png&quot;</span>,<br>                <span class="hljs-string">&quot;tv_偷笑&quot;</span><span class="hljs-string">:</span> <span class="hljs-string">&quot;bb690d4107620f1c15cff29509db529a73aee261.png&quot;</span>,<br>                <span class="hljs-string">&quot;tv_再见&quot;</span><span class="hljs-string">:</span> <span class="hljs-string">&quot;180129b8ea851044ce71caf55cc8ce44bd4a4fc8.png&quot;</span>,<br>                <span class="hljs-string">&quot;tv_冷漠&quot;</span><span class="hljs-string">:</span> <span class="hljs-string">&quot;b9cbc755c2b3ee43be07ca13de84e5b699a3f101.png&quot;</span>,<br>                <span class="hljs-string">&quot;tv_发怒&quot;</span><span class="hljs-string">:</span> <span class="hljs-string">&quot;34ba3cd204d5b05fec70ce08fa9fa0dd612409ff.png&quot;</span>,<br>                <span class="hljs-string">&quot;tv_发财&quot;</span><span class="hljs-string">:</span> <span class="hljs-string">&quot;34db290afd2963723c6eb3c4560667db7253a21a.png&quot;</span>,<br>                <span class="hljs-string">&quot;tv_可爱&quot;</span><span class="hljs-string">:</span> <span class="hljs-string">&quot;9e55fd9b500ac4b96613539f1ce2f9499e314ed9.png&quot;</span>,<br>                <span class="hljs-string">&quot;tv_吐血&quot;</span><span class="hljs-string">:</span> <span class="hljs-string">&quot;09dd16a7aa59b77baa1155d47484409624470c77.png&quot;</span>,<br>                <span class="hljs-string">&quot;tv_呆&quot;</span><span class="hljs-string">:</span> <span class="hljs-string">&quot;fe1179ebaa191569b0d31cecafe7a2cd1c951c9d.png&quot;</span>,<br>                <span class="hljs-string">&quot;tv_呕吐&quot;</span><span class="hljs-string">:</span> <span class="hljs-string">&quot;9f996894a39e282ccf5e66856af49483f81870f3.png&quot;</span>,<br>                <span class="hljs-string">&quot;tv_困&quot;</span><span class="hljs-string">:</span> <span class="hljs-string">&quot;241ee304e44c0af029adceb294399391e4737ef2.png&quot;</span>,<br>                <span class="hljs-string">&quot;tv_坏笑&quot;</span><span class="hljs-string">:</span> <span class="hljs-string">&quot;1f0b87f731a671079842116e0991c91c2c88645a.png&quot;</span>,<br>                <span class="hljs-string">&quot;tv_大佬&quot;</span><span class="hljs-string">:</span> <span class="hljs-string">&quot;093c1e2c490161aca397afc45573c877cdead616.png&quot;</span>,<br>                <span class="hljs-string">&quot;tv_大哭&quot;</span><span class="hljs-string">:</span> <span class="hljs-string">&quot;23269aeb35f99daee28dda129676f6e9ea87934f.png&quot;</span>,<br>                <span class="hljs-string">&quot;tv_委屈&quot;</span><span class="hljs-string">:</span> <span class="hljs-string">&quot;d04dba7b5465779e9755d2ab6f0a897b9b33bb77.png&quot;</span>,<br>                <span class="hljs-string">&quot;tv_害羞&quot;</span><span class="hljs-string">:</span> <span class="hljs-string">&quot;a37683fb5642fa3ddfc7f4e5525fd13e42a2bdb1.png&quot;</span>,<br>                <span class="hljs-string">&quot;tv_尴尬&quot;</span><span class="hljs-string">:</span> <span class="hljs-string">&quot;7cfa62dafc59798a3d3fb262d421eeeff166cfa4.png&quot;</span>,<br>                <span class="hljs-string">&quot;tv_微笑&quot;</span><span class="hljs-string">:</span> <span class="hljs-string">&quot;70dc5c7b56f93eb61bddba11e28fb1d18fddcd4c.png&quot;</span>,<br>                <span class="hljs-string">&quot;tv_思考&quot;</span><span class="hljs-string">:</span> <span class="hljs-string">&quot;90cf159733e558137ed20aa04d09964436f618a1.png&quot;</span>,<br>                <span class="hljs-string">&quot;tv_惊吓&quot;</span><span class="hljs-string">:</span> <span class="hljs-string">&quot;0d15c7e2ee58e935adc6a7193ee042388adc22af.png&quot;</span>,<br>            &#125;<span class="hljs-string">,</span><br></code></pre></td></tr></table></figure>

<p><img src="http://blog.memory-life.xyz/image-20240717202505652.png"></p>
<blockquote>
<p>2024 年 7 月 22 日</p>
</blockquote>
<p>继续来 B 站抓取更多表情：</p>
<p><img src="http://blog.memory-life.xyz/image-20240722112223584.png" alt="image-20240722112223584"></p>
<h2 id="邮箱提醒"><a href="#邮箱提醒" class="headerlink" title="邮箱提醒"></a>邮箱提醒</h2><blockquote>
<p>2024 年 7 月 17 日</p>
</blockquote>
<p><a target="_blank" rel="noopener" href="https://github.com/zhaojun1998/Valine-Admin">zhaojun1998/Valine-Admin: 一个 Valine 的拓展应用，用来增强 Valine 的邮件通知。 (github.com)</a></p>
<h2 id="自定义页面"><a href="#自定义页面" class="headerlink" title="自定义页面"></a>自定义页面</h2><blockquote>
<p>2024 年 7 月 17 日</p>
</blockquote>
<p>我直到今晚才发现，使用 Hexo 搭建的静态博客站点本质上还是前端三件套构成的，有很高的自由度来重构页面。</p>
<p>我开始尝试去了解各个页面对应的代码位置，再用我贫瘠的 HTML + CSS 基础去美化页面，实现自定义页面。</p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/m0_63629756/article/details/136328087">中台前端框架 AntDesignPro document.ejs 文件详解-CSDN 博客</a></p>
<h1 id="页脚优化"><a href="#页脚优化" class="headerlink" title="页脚优化"></a>页脚优化</h1><blockquote>
<p>2024 年 7 月 17 日</p>
</blockquote>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-string">&lt;div</span> <span class="hljs-string">class=&quot;footer-inner&quot;&gt;</span><br>  &lt;%<span class="language-ruby"> <span class="hljs-keyword">if</span> (theme.footer.content) &#123; </span>%&gt;<br>    <span class="hljs-string">&lt;div</span> <span class="hljs-string">class=&quot;footer-content&quot;&gt;</span><br>      &lt;%-<span class="language-ruby"> theme.footer.content </span>%&gt;<br>    <span class="hljs-string">&lt;/div&gt;</span><br>  &lt;%<span class="language-ruby"> &#125; </span>%&gt;<br>  &lt;%<span class="language-ruby"> <span class="hljs-keyword">if</span> (theme.footer.statistics.enable) &#123; </span>%&gt;<br>    &lt;%-<span class="language-ruby"> partial(<span class="hljs-string">&#x27;_partials/footer/statistics.ejs&#x27;</span>) </span>%&gt;<br>  &lt;%<span class="language-ruby"> &#125; </span>%&gt;<br>  &lt;%<span class="language-ruby"> <span class="hljs-keyword">if</span>(theme.footer.beian.enable) &#123; </span>%&gt;<br>    <span class="hljs-string">&lt;!--</span> <span class="hljs-string">备案信</span> <span class="hljs-string">ICP</span> <span class="hljs-string">for</span> <span class="hljs-string">China</span> <span class="hljs-string">--&gt;</span><br>    &lt;%-<span class="language-ruby"> partial(<span class="hljs-string">&#x27;_partials/footer/beian.ejs&#x27;</span>) </span>%&gt;<br>  &lt;%<span class="language-ruby"> &#125; </span>%&gt;<br>  &lt;%<span class="language-ruby"> <span class="hljs-keyword">if</span>(theme.web_analytics.cnzz) &#123; </span>%&gt;<br>    <span class="hljs-string">&lt;!--</span> <span class="hljs-string">cnzz</span> <span class="hljs-string">Analytics</span> <span class="hljs-string">Icon</span> <span class="hljs-string">--&gt;</span><br>    <span class="hljs-string">&lt;span</span> <span class="hljs-string">id=&quot;cnzz_stat_icon_&lt;%=</span> <span class="hljs-string">theme.web_analytics.cnzz</span> <span class="hljs-string">%&gt;&quot;</span> <span class="hljs-string">style=&quot;display:</span> <span class="hljs-string">none&quot;&gt;&lt;/span&gt;</span><br>  &lt;%<span class="language-ruby"> &#125; </span>%&gt;<br><span class="hljs-string">&lt;/div&gt;</span><br></code></pre></td></tr></table></figure>

<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-string">&lt;footer</span> <span class="hljs-string">class=&quot;text-center</span> <span class="hljs-string">mt-5</span> <span class="hljs-string">py-3&quot;&gt;</span><br><br>  &lt;%-<span class="language-ruby"> theme.footer.content </span>%&gt;<br>  <span class="hljs-string">&lt;!--</span> <span class="hljs-string">添加网站运行时间</span> <span class="hljs-string">--&gt;</span><br>  <span class="hljs-string">&lt;div</span> <span class="hljs-string">class=&quot;footer-content&quot;&gt;</span><br>    <span class="hljs-string">&lt;div&gt;</span><br>      <span class="hljs-string">&lt;span</span> <span class="hljs-string">id=&quot;timeDate&quot;&gt;载入天数...&lt;/span&gt;</span><br>      <span class="hljs-string">&lt;span</span> <span class="hljs-string">id=&quot;times&quot;&gt;载入时分秒...&lt;/span&gt;</span><br>      <span class="hljs-string">&lt;script&gt;</span><br>      <span class="hljs-string">var</span> <span class="hljs-string">now</span> <span class="hljs-string">=</span> <span class="hljs-string">new</span> <span class="hljs-string">Date();</span><br>      <span class="hljs-string">function</span> <span class="hljs-string">createtime()&#123;</span><br>          <span class="hljs-string">var</span> <span class="hljs-string">grt=</span> <span class="hljs-string">new</span> <span class="hljs-string">Date(&quot;04/03/2020</span> <span class="hljs-number">00</span><span class="hljs-string">:00:00&quot;);//此处修改你的建站时间或者网站上线时间</span><br>          <span class="hljs-string">now.setTime(now.getTime()+250);</span><br>          <span class="hljs-string">days</span> <span class="hljs-string">=</span> <span class="hljs-string">(now</span> <span class="hljs-bullet">-</span> <span class="hljs-string">grt</span> <span class="hljs-string">)</span> <span class="hljs-string">/</span> <span class="hljs-number">1000</span> <span class="hljs-string">/</span> <span class="hljs-number">60</span> <span class="hljs-string">/</span> <span class="hljs-number">60</span> <span class="hljs-string">/</span> <span class="hljs-number">24</span><span class="hljs-string">;</span><br>          <span class="hljs-string">dnum</span> <span class="hljs-string">=</span> <span class="hljs-string">Math.floor(days);</span><br>          <span class="hljs-string">hours</span> <span class="hljs-string">=</span> <span class="hljs-string">(now</span> <span class="hljs-bullet">-</span> <span class="hljs-string">grt</span> <span class="hljs-string">)</span> <span class="hljs-string">/</span> <span class="hljs-number">1000</span> <span class="hljs-string">/</span> <span class="hljs-number">60</span> <span class="hljs-string">/</span> <span class="hljs-number">60</span> <span class="hljs-bullet">-</span> <span class="hljs-string">(24</span> <span class="hljs-string">*</span> <span class="hljs-string">dnum);</span><br>          <span class="hljs-string">hnum</span> <span class="hljs-string">=</span> <span class="hljs-string">Math.floor(hours);</span><br>          <span class="hljs-string">if(String(hnum).length</span> <span class="hljs-string">==1</span> <span class="hljs-string">)&#123;</span><br>              <span class="hljs-string">hnum</span> <span class="hljs-string">=</span> <span class="hljs-string">&quot;0&quot;</span> <span class="hljs-string">+</span> <span class="hljs-string">hnum;</span><br>          <span class="hljs-string">&#125;</span><br>          <span class="hljs-string">minutes</span> <span class="hljs-string">=</span> <span class="hljs-string">(now</span> <span class="hljs-bullet">-</span> <span class="hljs-string">grt</span> <span class="hljs-string">)</span> <span class="hljs-string">/</span> <span class="hljs-number">1000</span> <span class="hljs-string">/60</span> <span class="hljs-bullet">-</span> <span class="hljs-string">(24</span> <span class="hljs-string">*</span> <span class="hljs-number">60</span> <span class="hljs-string">*</span> <span class="hljs-string">dnum)</span> <span class="hljs-bullet">-</span> <span class="hljs-string">(60</span> <span class="hljs-string">*</span> <span class="hljs-string">hnum);</span><br>          <span class="hljs-string">mnum</span> <span class="hljs-string">=</span> <span class="hljs-string">Math.floor(minutes);</span><br>          <span class="hljs-string">if(String(mnum).length</span> <span class="hljs-string">==1</span> <span class="hljs-string">)&#123;</span><br>                    <span class="hljs-string">mnum</span> <span class="hljs-string">=</span> <span class="hljs-string">&quot;0&quot;</span> <span class="hljs-string">+</span> <span class="hljs-string">mnum;</span><br>          <span class="hljs-string">&#125;</span><br>          <span class="hljs-string">seconds</span> <span class="hljs-string">=</span> <span class="hljs-string">(now</span> <span class="hljs-bullet">-</span> <span class="hljs-string">grt</span> <span class="hljs-string">)</span> <span class="hljs-string">/</span> <span class="hljs-number">1000</span> <span class="hljs-bullet">-</span> <span class="hljs-string">(24</span> <span class="hljs-string">*</span> <span class="hljs-number">60</span> <span class="hljs-string">*</span> <span class="hljs-number">60</span> <span class="hljs-string">*</span> <span class="hljs-string">dnum)</span> <span class="hljs-bullet">-</span> <span class="hljs-string">(60</span> <span class="hljs-string">*</span> <span class="hljs-number">60</span> <span class="hljs-string">*</span> <span class="hljs-string">hnum)</span> <span class="hljs-bullet">-</span> <span class="hljs-string">(60</span> <span class="hljs-string">*</span> <span class="hljs-string">mnum);</span><br>          <span class="hljs-string">snum</span> <span class="hljs-string">=</span> <span class="hljs-string">Math.round(seconds);</span><br>          <span class="hljs-string">if(String(snum).length</span> <span class="hljs-string">==1</span> <span class="hljs-string">)&#123;</span><br>                    <span class="hljs-string">snum</span> <span class="hljs-string">=</span> <span class="hljs-string">&quot;0&quot;</span> <span class="hljs-string">+</span> <span class="hljs-string">snum;</span><br>          <span class="hljs-string">&#125;</span><br>          <span class="hljs-string">document.getElementById(&quot;timeDate&quot;).innerHTML</span> <span class="hljs-string">=</span> <span class="hljs-string">&quot;🚀 &amp;nbsp&quot;</span><span class="hljs-string">+dnum+&quot;&amp;nbsp天&quot;;</span>  <span class="hljs-string">//此次自定义显示内容</span><br>          <span class="hljs-string">document.getElementById(&quot;times&quot;).innerHTML</span> <span class="hljs-string">=</span> <span class="hljs-string">hnum</span> <span class="hljs-string">+</span> <span class="hljs-string">&quot;&amp;nbsp小时&amp;nbsp&quot;</span> <span class="hljs-string">+</span> <span class="hljs-string">mnum</span> <span class="hljs-string">+</span> <span class="hljs-string">&quot;&amp;nbsp分&amp;nbsp&quot;</span> <span class="hljs-string">+</span> <span class="hljs-string">snum</span> <span class="hljs-string">+</span> <span class="hljs-string">&quot;&amp;nbsp秒&quot;</span><span class="hljs-string">;</span><br>      <span class="hljs-string">&#125;</span>  <span class="hljs-string">//此次自定义显示内容</span><br>      <span class="hljs-string">setInterval(&quot;createtime()&quot;,250);</span><br>      <span class="hljs-string">&lt;/script&gt;</span><br>    <span class="hljs-string">&lt;/div&gt;</span><br>  <span class="hljs-string">&lt;/div&gt;</span><br>  <span class="hljs-string">&lt;!--</span> <span class="hljs-string">统计访问量信息</span> <span class="hljs-string">--&gt;</span><br>  &lt;%-<span class="language-ruby"> partial(<span class="hljs-string">&#x27;_partial/statistics.ejs&#x27;</span>) </span>%&gt;<br>  <span class="hljs-string">&lt;!--</span> <span class="hljs-string">个人和备案信息</span> <span class="hljs-string">--&gt;</span><br>  <span class="hljs-string">&lt;div&gt;©2020-2021&lt;a</span> <span class="hljs-string">href=&quot;https://clearlight.blog.csdn.net/&quot;&gt;ClearlightY&lt;/a&gt;</span> <span class="hljs-string">&lt;a</span> <span class="hljs-string">href=&quot;http://beian.miit.gov.cn/&quot;&gt;冀ICP备19019307号-2&lt;/a&gt;&lt;/div&gt;</span><br>   <span class="hljs-string">&lt;!--</span> &lt;%-<span class="language-ruby"> partial(<span class="hljs-string">&#x27;_partial/beian.ejs&#x27;</span>) </span>%&gt; <span class="hljs-string">--&gt;</span><br>  &lt;%<span class="language-ruby"> <span class="hljs-keyword">if</span>(theme.web_analytics.cnzz) &#123; </span>%&gt;<br>    <span class="hljs-string">&lt;!--</span> <span class="hljs-string">cnzz</span> <span class="hljs-string">Analytics</span> <span class="hljs-string">Icon</span> <span class="hljs-string">--&gt;</span><br>    <span class="hljs-string">&lt;span</span> <span class="hljs-string">id=&quot;cnzz_stat_icon_&lt;%-</span> <span class="hljs-string">theme.web_analytics.cnzz</span> <span class="hljs-string">%&gt;&quot;</span> <span class="hljs-string">style=&quot;display:</span> <span class="hljs-string">none&quot;&gt;&lt;/span&gt;</span><br>  &lt;%<span class="language-ruby"> &#125; </span>%&gt;<br><span class="hljs-string">&lt;/footer&gt;</span><br><br><span class="hljs-string">&lt;!--</span> <span class="hljs-string">SCRIPTS</span> <span class="hljs-string">--&gt;</span><br>&lt;%-<span class="language-ruby"> partial(<span class="hljs-string">&#x27;_partial/scripts.ejs&#x27;</span>) </span>%&gt;<br></code></pre></td></tr></table></figure>

<h1 id="首页优化"><a href="#首页优化" class="headerlink" title="首页优化"></a>首页优化</h1><blockquote>
<p>2024 年 7 月 17 日</p>
</blockquote>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/qq_36852780/article/details/120943120">Hexo Fluid 主题 细节优化_hexo-fluid 标签页优化-CSDN 博客</a></p>
<p><a target="_blank" rel="noopener" href="https://www.erenship.com/posts/40222.html#%E6%B7%BB%E5%8A%A0%E8%BF%90%E8%A1%8C%E6%97%B6%E9%97%B4">Hexo’s Fluid 主题私人定制（持续更新） - Eren の 宇宙船 (erenship.com)</a></p>
<p>页脚优化不打紧的，谁没事会去看页脚，所以我把页脚下的建站时间显示，放在了博客首页中，效果如下：</p>
<p><img src="http://blog.memory-life.xyz/image-20240717131937567.png" alt="image-20240717131937567"></p>
<p>只需要编辑 banner.ejs 文件即可：</p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br></pre></td><td class="code"><pre><code class="hljs yaml">&lt;%<span class="language-ruby"></span><br><span class="language-ruby">var banner_img = page.banner_img |<span class="hljs-params"></span>| theme.index.banner_img</span><br><span class="language-ruby">var banner_img_height = parseFloat(page.banner_img_height |<span class="hljs-params"></span>| theme.index.banner_img_height)</span><br><span class="language-ruby">var banner_mask_alpha = parseFloat(page.banner_mask_alpha |<span class="hljs-params"></span>| theme.index.banner_mask_alpha)</span><br><span class="language-ruby">var subtitle = page.subtitle |<span class="hljs-params"></span>| page.title</span><br><span class="language-ruby"></span>%&gt;<br><span class="hljs-string">&lt;div</span> <span class="hljs-string">id=&quot;banner&quot;</span> <span class="hljs-string">class=&quot;banner&quot;</span> &lt;%-<span class="language-ruby"> theme.banner &amp;&amp; theme.banner.parallax &amp;&amp; <span class="hljs-string">&#x27;parallax=true&#x27;</span> </span>%&gt;<br>     <span class="hljs-string">style=&quot;background:</span> <span class="hljs-string">url(&#x27;&lt;%-</span> <span class="hljs-string">url_for(banner_img)</span> <span class="hljs-string">%&gt;&#x27;)</span> <span class="hljs-literal">no</span><span class="hljs-string">-repeat</span> <span class="hljs-string">center</span> <span class="hljs-string">center;</span> <span class="hljs-attr">background-size:</span> <span class="hljs-string">cover;&quot;&gt;</span><br>  <span class="hljs-string">&lt;div</span> <span class="hljs-string">class=&quot;full-bg-img&quot;&gt;</span><br><br>    <span class="hljs-string">&lt;div</span> <span class="hljs-string">class=&quot;mask</span> <span class="hljs-string">flex-center&quot;</span> <span class="hljs-string">style=&quot;background-color:</span> <span class="hljs-string">rgba(0,</span> <span class="hljs-number">0</span><span class="hljs-string">,</span> <span class="hljs-number">0</span><span class="hljs-string">,</span> &lt;%=<span class="language-ruby"> parseFloat(banner_mask_alpha) </span>%&gt;<span class="hljs-string">)&quot;&gt;</span><br>      <span class="hljs-string">&lt;div</span> <span class="hljs-string">class=&quot;banner-text</span> <span class="hljs-string">text-center</span> <span class="hljs-string">fade-in-up&quot;&gt;</span><br><br>        <span class="hljs-string">&lt;div</span> <span class="hljs-string">class=&quot;h2&quot;&gt;</span><br>          &lt;%<span class="language-ruby"> <span class="hljs-keyword">if</span>(theme.fun_features.typing.enable &amp;&amp; in_scope(theme.fun_features.typing.scope)) &#123; </span>%&gt;<br>            <span class="hljs-string">&lt;span</span> <span class="hljs-string">id=&quot;subtitle&quot;</span> <span class="hljs-string">data-typed-text=&quot;&lt;%=</span> <span class="hljs-string">subtitle</span> <span class="hljs-string">%&gt;&quot;&gt;&lt;/span&gt;</span><br>          &lt;%<span class="language-ruby"> &#125; <span class="hljs-keyword">else</span> &#123; </span>%&gt;<br>            <span class="hljs-string">&lt;span</span> <span class="hljs-string">id=&quot;subtitle&quot;&gt;&lt;%-</span> <span class="hljs-string">subtitle</span> <span class="hljs-string">%&gt;&lt;/span&gt;</span><br>          &lt;%<span class="language-ruby"> &#125; </span>%&gt;<br>        <span class="hljs-string">&lt;/div&gt;</span><br><br><br>        &lt;%<span class="language-ruby"> <span class="hljs-keyword">if</span> (is_post()) &#123; </span>%&gt;<br>          &lt;%-<span class="language-ruby"> inject_point(<span class="hljs-string">&#x27;postMetaTop&#x27;</span>) </span>%&gt;<br>        &lt;%<span class="language-ruby"> &#125; </span>%&gt;<br><br>        <span class="hljs-string">&lt;!--</span> <span class="hljs-string">添加网站运行时间</span> <span class="hljs-string">--&gt;</span><br>        <span class="hljs-string">&lt;div</span> <span class="hljs-string">class=&quot;footer-content&quot;&gt;</span><br>          <span class="hljs-string">&lt;div&gt;</span><br>            <span class="hljs-string">&lt;span</span> <span class="hljs-string">id=&quot;timeDate&quot;&gt;&lt;/span&gt;</span><br>            <span class="hljs-string">&lt;span</span> <span class="hljs-string">id=&quot;times&quot;&gt;&lt;/span&gt;</span><br>            <span class="hljs-string">&lt;script&gt;</span><br>            <span class="hljs-string">var</span> <span class="hljs-string">now</span> <span class="hljs-string">=</span> <span class="hljs-string">new</span> <span class="hljs-string">Date();</span><br>            <span class="hljs-string">function</span> <span class="hljs-string">createtime()&#123;</span><br>                <span class="hljs-string">var</span> <span class="hljs-string">grt=</span> <span class="hljs-string">new</span> <span class="hljs-string">Date(&quot;03/07/2023</span> <span class="hljs-number">00</span><span class="hljs-string">:00:00&quot;);//此处修改你的建站时间或者网站上线时间</span><br>                <span class="hljs-string">now.setTime(now.getTime()+250);</span><br>                <span class="hljs-string">days</span> <span class="hljs-string">=</span> <span class="hljs-string">(now</span> <span class="hljs-bullet">-</span> <span class="hljs-string">grt</span> <span class="hljs-string">)</span> <span class="hljs-string">/</span> <span class="hljs-number">1000</span> <span class="hljs-string">/</span> <span class="hljs-number">60</span> <span class="hljs-string">/</span> <span class="hljs-number">60</span> <span class="hljs-string">/</span> <span class="hljs-number">24</span><span class="hljs-string">;</span><br>                <span class="hljs-string">dnum</span> <span class="hljs-string">=</span> <span class="hljs-string">Math.floor(days);</span><br>                <span class="hljs-string">hours</span> <span class="hljs-string">=</span> <span class="hljs-string">(now</span> <span class="hljs-bullet">-</span> <span class="hljs-string">grt</span> <span class="hljs-string">)</span> <span class="hljs-string">/</span> <span class="hljs-number">1000</span> <span class="hljs-string">/</span> <span class="hljs-number">60</span> <span class="hljs-string">/</span> <span class="hljs-number">60</span> <span class="hljs-bullet">-</span> <span class="hljs-string">(24</span> <span class="hljs-string">*</span> <span class="hljs-string">dnum);</span><br>                <span class="hljs-string">hnum</span> <span class="hljs-string">=</span> <span class="hljs-string">Math.floor(hours);</span><br>                <span class="hljs-string">if(String(hnum).length</span> <span class="hljs-string">==1</span> <span class="hljs-string">)&#123;</span><br>                    <span class="hljs-string">hnum</span> <span class="hljs-string">=</span> <span class="hljs-string">&quot;0&quot;</span> <span class="hljs-string">+</span> <span class="hljs-string">hnum;</span><br>                <span class="hljs-string">&#125;</span><br>                <span class="hljs-string">minutes</span> <span class="hljs-string">=</span> <span class="hljs-string">(now</span> <span class="hljs-bullet">-</span> <span class="hljs-string">grt</span> <span class="hljs-string">)</span> <span class="hljs-string">/</span> <span class="hljs-number">1000</span> <span class="hljs-string">/60</span> <span class="hljs-bullet">-</span> <span class="hljs-string">(24</span> <span class="hljs-string">*</span> <span class="hljs-number">60</span> <span class="hljs-string">*</span> <span class="hljs-string">dnum)</span> <span class="hljs-bullet">-</span> <span class="hljs-string">(60</span> <span class="hljs-string">*</span> <span class="hljs-string">hnum);</span><br>                <span class="hljs-string">mnum</span> <span class="hljs-string">=</span> <span class="hljs-string">Math.floor(minutes);</span><br>                <span class="hljs-string">if(String(mnum).length</span> <span class="hljs-string">==1</span> <span class="hljs-string">)&#123;</span><br>                          <span class="hljs-string">mnum</span> <span class="hljs-string">=</span> <span class="hljs-string">&quot;0&quot;</span> <span class="hljs-string">+</span> <span class="hljs-string">mnum;</span><br>                <span class="hljs-string">&#125;</span><br>                <span class="hljs-string">seconds</span> <span class="hljs-string">=</span> <span class="hljs-string">(now</span> <span class="hljs-bullet">-</span> <span class="hljs-string">grt</span> <span class="hljs-string">)</span> <span class="hljs-string">/</span> <span class="hljs-number">1000</span> <span class="hljs-bullet">-</span> <span class="hljs-string">(24</span> <span class="hljs-string">*</span> <span class="hljs-number">60</span> <span class="hljs-string">*</span> <span class="hljs-number">60</span> <span class="hljs-string">*</span> <span class="hljs-string">dnum)</span> <span class="hljs-bullet">-</span> <span class="hljs-string">(60</span> <span class="hljs-string">*</span> <span class="hljs-number">60</span> <span class="hljs-string">*</span> <span class="hljs-string">hnum)</span> <span class="hljs-bullet">-</span> <span class="hljs-string">(60</span> <span class="hljs-string">*</span> <span class="hljs-string">mnum);</span><br>                <span class="hljs-string">snum</span> <span class="hljs-string">=</span> <span class="hljs-string">Math.round(seconds);</span><br>                <span class="hljs-string">if(String(snum).length</span> <span class="hljs-string">==1</span> <span class="hljs-string">)&#123;</span><br>                          <span class="hljs-string">snum</span> <span class="hljs-string">=</span> <span class="hljs-string">&quot;0&quot;</span> <span class="hljs-string">+</span> <span class="hljs-string">snum;</span><br>                <span class="hljs-string">&#125;</span><br>                <span class="hljs-string">document.getElementById(&quot;timeDate&quot;).innerHTML</span> <span class="hljs-string">=</span> <span class="hljs-string">&quot;🚀 &amp;nbsp&quot;</span><span class="hljs-string">+dnum+&quot;&amp;nbsp天&quot;;</span>  <span class="hljs-string">//此次自定义显示内容</span><br>                <span class="hljs-string">document.getElementById(&quot;times&quot;).innerHTML</span> <span class="hljs-string">=</span> <span class="hljs-string">hnum</span> <span class="hljs-string">+</span> <span class="hljs-string">&quot;&amp;nbsp小时&amp;nbsp&quot;</span> <span class="hljs-string">+</span> <span class="hljs-string">mnum</span> <span class="hljs-string">+</span> <span class="hljs-string">&quot;&amp;nbsp分&amp;nbsp&quot;</span> <span class="hljs-string">+</span> <span class="hljs-string">snum</span> <span class="hljs-string">+</span> <span class="hljs-string">&quot;&amp;nbsp秒&quot;</span><span class="hljs-string">;</span><br>            <span class="hljs-string">&#125;</span>  <span class="hljs-string">//此次自定义显示内容</span><br>            <span class="hljs-string">setInterval(&quot;createtime()&quot;,250);</span><br>            <span class="hljs-string">&lt;/script&gt;</span><br>          <span class="hljs-string">&lt;/div&gt;</span><br>        <span class="hljs-string">&lt;/div&gt;</span><br><br>      <span class="hljs-string">&lt;/div&gt;</span><br><br><br>      &lt;%<span class="language-ruby"> <span class="hljs-keyword">if</span> (theme.scroll_down_arrow.enable &amp;&amp; theme.scroll_down_arrow.banner_height_limit &lt;= banner_img_height &amp;&amp; page.layout !== <span class="hljs-string">&#x27;404&#x27;</span>) &#123; </span>%&gt;<br>        <span class="hljs-string">&lt;div</span> <span class="hljs-string">class=&quot;scroll-down-bar&quot;&gt;</span><br>          <span class="hljs-string">&lt;i</span> <span class="hljs-string">class=&quot;iconfont</span> <span class="hljs-string">icon-arrowdown&quot;&gt;&lt;/i&gt;</span><br>        <span class="hljs-string">&lt;/div&gt;</span><br>      &lt;%<span class="language-ruby"> &#125; </span>%&gt;<br>    <span class="hljs-string">&lt;/div&gt;</span><br>  <span class="hljs-string">&lt;/div&gt;</span><br><span class="hljs-string">&lt;/div&gt;</span><br><br></code></pre></td></tr></table></figure>

<p>简直像是打开了新世界，这样的话，我的博客可优化的地方还很多，而且相对来说更加自由了。</p>
<p>曲线救国，把文章内容页面的建站时间显示删除了：</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><code class="hljs js"><span class="hljs-keyword">if</span> (!<span class="hljs-variable language_">window</span>.<span class="hljs-property">location</span>.<span class="hljs-property">href</span>.<span class="hljs-title function_">includes</span>(<span class="hljs-string">&quot;/20&quot;</span>)) &#123;<br>  <span class="hljs-built_in">setInterval</span>(<span class="hljs-string">&quot;createtime()&quot;</span>, <span class="hljs-number">250</span>); <span class="hljs-comment">// 只有当URL不包含&#x27;specific-page&#x27;时，才调用createtime</span><br>&#125; <span class="hljs-comment">//此次自定义显示内容</span><br></code></pre></td></tr></table></figure>

<p><img src="http://blog.memory-life.xyz/image-20240718112111679.png" alt="image-20240718112111679"></p>
<h1 id="博文排版"><a href="#博文排版" class="headerlink" title="博文排版"></a>博文排版</h1><blockquote>
<p>2024 年 7 月 31 日</p>
</blockquote>
<p>今年四月底那会儿就执手优化过部分博客，可惜这项工作没有做到位。</p>
<p>五月初 Gitee Pages 服务停用，在那之后一个多月的时间里我的博客是没有更新的，准确的说没有同步本地到线上。</p>
<p>好在六月初初步解决了这个问题，六月下旬最终完善博客访问链接，六月底最终完成七牛云图床整合实现图片正常显示。</p>
<p>七月份中旬，我新增了博客评论功能，首页展示博客建站时间以及友情链接优化，更加深入理解了 Hexo 生成静态站点的自定义多样性。</p>
<p>这会儿总算能静下心来，重新排版布局这八十二篇博客的排列顺序，以及对应的博文封面图了。</p>
<p><strong>日常</strong></p>
<p><strong>技术</strong></p>
<p><strong>转载</strong></p>
<p><strong>其他</strong></p>
<h1 id="公告栏"><a href="#公告栏" class="headerlink" title="公告栏"></a>公告栏</h1><blockquote>
<p>2025 年 5 月 28 日</p>
</blockquote>
<p>模仿搜索页面，自定义公告栏弹窗。</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><code class="hljs ejs">&lt;% if(theme.search.enable) &#123; %&gt;<br>     &lt;li class=&quot;nav-item&quot; id=&quot;search-btn&quot;&gt;<br>       &lt;a class=&quot;nav-link&quot; target=&quot;_self&quot; href=&quot;javascript:;&quot; data-toggle=&quot;modal&quot; data-target=&quot;#modalSearch&quot; aria-label=&quot;Search&quot;&gt;<br>         &lt;i class=&quot;iconfont icon-search&quot;&gt;&lt;/i&gt;<br>       &lt;/a&gt;<br>     &lt;/li&gt;<br>     &lt;% import_js(theme.static_prefix.internal_js, &#x27;local-search.js&#x27;) %&gt;<br>   &lt;% &#125; %&gt;<br></code></pre></td></tr></table></figure>

<p>主要修改点：</p>
<ol>
<li>将 <code>&lt;i class=&quot;iconfont icon-search&quot;&gt;&lt;/i&gt;</code> 替换为 <code>公告栏</code> 文字</li>
<li>将 <code>id=&quot;search-btn&quot;</code> 改为 <code>id=&quot;notice-btn&quot;</code> 以更符合新功能</li>
<li>保留了原有的模态框触发功能（<code>data-toggle=&quot;modal&quot;</code> 和 <code>data-target=&quot;#modalSearch&quot;</code>）</li>
</ol>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><code class="hljs ejs">&lt;% if(theme.search.enable) &#123; %&gt;<br>     &lt;li class=&quot;nav-item&quot; id=&quot;notice-btn&quot;&gt;<br>         &lt;a class=&quot;nav-link&quot; target=&quot;_self&quot; href=&quot;javascript:;&quot; data-toggle=&quot;modal&quot; data-target=&quot;#modalSearch&quot; aria-label=&quot;Search&quot;&gt;<br>             公告栏<br>         &lt;/a&gt;<br>     &lt;/li&gt;<br>     &lt;% import_js(theme.static_prefix.internal_js, &#x27;local-search.js&#x27;) %&gt;<br> &lt;% &#125; %&gt;<br></code></pre></td></tr></table></figure>

<table>
<thead>
<tr>
<th align="center">属性值</th>
<th align="center">功能</th>
<th align="center">必备配合属性/类</th>
<th align="center">典型场景</th>
</tr>
</thead>
<tbody><tr>
<td align="center"><code>data-toggle=&quot;modal&quot;</code></td>
<td align="center">打开弹窗</td>
<td align="center"><code>data-target=&quot;#id&quot;</code></td>
<td align="center">弹窗、对话框</td>
</tr>
<tr>
<td align="center"><code>data-toggle=&quot;collapse&quot;</code></td>
<td align="center">展开/折叠内容</td>
<td align="center"><code>.collapse</code> + <code>data-target</code></td>
<td align="center">手风琴、折叠菜单</td>
</tr>
<tr>
<td align="center"><code>data-toggle=&quot;dropdown&quot;</code></td>
<td align="center">下拉菜单</td>
<td align="center"><code>.dropdown</code> + <code>.dropdown-menu</code></td>
<td align="center">导航下拉选项</td>
</tr>
<tr>
<td align="center"><code>data-toggle=&quot;tab&quot;</code></td>
<td align="center">切换标签页</td>
<td align="center"><code>.nav-tabs</code> + <code>.tab-content</code></td>
<td align="center">多标签内容切换</td>
</tr>
<tr>
<td align="center"><code>data-toggle=&quot;tooltip&quot;</code></td>
<td align="center">提示框</td>
<td align="center"><code>title</code> + JS 初始化</td>
<td align="center">按钮提示</td>
</tr>
</tbody></table>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-attr">notice:</span><br>  <span class="hljs-attr">enable:</span> <span class="hljs-literal">true</span> <span class="hljs-comment"># 启用公告栏</span><br></code></pre></td></tr></table></figure>

<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-attr">notice:</span><br>  <span class="hljs-attr">enable:</span> <span class="hljs-literal">true</span> <span class="hljs-comment"># 启用公告栏</span><br>  <span class="hljs-attr">title:</span> <span class="hljs-string">&quot;网站公告&quot;</span> <span class="hljs-comment"># 弹窗标题</span><br>  <span class="hljs-attr">content:</span> <span class="hljs-string">|</span><br><span class="hljs-string">    &lt;p&gt;2024-02-01：系统维护通知&lt;/p&gt;</span><br><span class="hljs-string">    &lt;p&gt;2024-01-15：新增公告栏功能&lt;/p&gt;</span><br></code></pre></td></tr></table></figure>

<p><img src="http://blog.memory-life.xyz/image-20250528174424683.png" alt="image-20250528174424683"></p>
<p>控制台测试弹窗，执行结果表明 HTML 未渲染。</p>
<figure class="highlight javascript"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br></pre></td><td class="code"><pre><code class="hljs javascript"><span class="hljs-comment">// 临时插入模态框</span><br>$(<span class="hljs-string">&quot;body&quot;</span>).<span class="hljs-title function_">append</span>(<span class="hljs-string">`</span><br><span class="hljs-string">&lt;div class=&quot;modal fade&quot; id=&quot;modalNotice&quot;&gt;</span><br><span class="hljs-string">  &lt;div class=&quot;modal-dialog&quot;&gt;</span><br><span class="hljs-string">    &lt;div class=&quot;modal-content&quot;&gt;</span><br><span class="hljs-string">      &lt;div class=&quot;modal-body&quot;&gt;测试弹窗&lt;/div&gt;</span><br><span class="hljs-string">    &lt;/div&gt;</span><br><span class="hljs-string">  &lt;/div&gt;</span><br><span class="hljs-string">&lt;/div&gt;</span><br><span class="hljs-string">`</span>);<br><br><span class="hljs-comment">// 尝试显示</span><br>$(<span class="hljs-string">&quot;#modalNotice&quot;</span>).<span class="hljs-title function_">modal</span>(<span class="hljs-string">&quot;show&quot;</span>);<br></code></pre></td></tr></table></figure>

<p><img src="http://blog.memory-life.xyz/image-20250528174629364.png" alt="image-20250528174629364"></p>
<p>明白了显示原理，那就是页面未渲染成功，全局搜索<code>search.ejs</code>页面在哪里被引用，最终定位到<code>layout.ejs</code>博客布局页面。</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><code class="hljs ejs">&lt;% if (theme.search.enable) &#123; %&gt;<br>  &lt;%- partial(&#x27;_partials/search.ejs&#x27;) %&gt;<br>&lt;% &#125; %&gt;<br></code></pre></td></tr></table></figure>

<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><code class="hljs ejs">&lt;% if (theme.search.enable) &#123; %&gt;<br>    &lt;%- partial(&#x27;_partials/notice.ejs&#x27;) %&gt;<br>&lt;% &#125; %&gt;<br></code></pre></td></tr></table></figure>

<p>这样子调整，公告栏终于成功显示：</p>
<p><img src="http://blog.memory-life.xyz/image-20250528175345043.png" alt="image-20250528175345043"></p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br></pre></td><td class="code"><pre><code class="hljs ejs">&lt;div class=&quot;modal fade&quot;<br>     id=&quot;modalNotice&quot;<br>     tabindex=&quot;-1&quot;&gt;<br>    &lt;div class=&quot;modal-dialog&quot;&gt;<br>        &lt;div class=&quot;modal-content&quot;&gt;<br>            &lt;div class=&quot;modal-header&quot;&gt;<br>                &lt;h5 class=&quot;modal-title&quot;&gt;公告&lt;/h5&gt;<br>                &lt;button type=&quot;button&quot; class=&quot;close&quot; data-dismiss=&quot;modal&quot;&gt;<br>                    &lt;span&gt;&amp;times;&lt;/span&gt;<br>                &lt;/button&gt;<br>            &lt;/div&gt;<br>            &lt;div class=&quot;modal-body&quot;&gt;<br>                &quot;这里是公告内容&quot;<br>            &lt;/div&gt;<br>        &lt;/div&gt;<br>    &lt;/div&gt;<br>&lt;/div&gt;<br></code></pre></td></tr></table></figure>

<p>实现公告栏弹窗自动弹出。</p>
<figure class="highlight javascript"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br></pre></td><td class="code"><pre><code class="hljs javascript">&lt;script&gt;<br>  <span class="hljs-variable language_">document</span>.<span class="hljs-title function_">addEventListener</span>(<span class="hljs-string">&#x27;DOMContentLoaded&#x27;</span>, <span class="hljs-keyword">function</span>(<span class="hljs-params"></span>) &#123;<br>    <span class="hljs-keyword">if</span>(!<span class="hljs-variable language_">localStorage</span>.<span class="hljs-title function_">getItem</span>(<span class="hljs-string">&#x27;hexoAnnounceShown&#x27;</span>)) &#123;<br>      $(<span class="hljs-string">&#x27;#modalNotice&#x27;</span>).<span class="hljs-title function_">modal</span>(<span class="hljs-string">&#x27;show&#x27;</span>);<br>      <span class="hljs-variable language_">localStorage</span>.<span class="hljs-title function_">setItem</span>(<span class="hljs-string">&#x27;hexoAnnounceShown&#x27;</span>, <span class="hljs-string">&#x27;true&#x27;</span>);<br><br>      <span class="hljs-comment">// 可选：设置24小时后重新显示</span><br>      <span class="hljs-built_in">setTimeout</span>(<span class="hljs-function">() =&gt;</span> &#123;<br>        <span class="hljs-variable language_">localStorage</span>.<span class="hljs-title function_">removeItem</span>(<span class="hljs-string">&#x27;hexoAnnounceShown&#x27;</span>);<br>      &#125;, <span class="hljs-number">86400000</span>);<br>    &#125;<br>  &#125;);<br>&lt;/script&gt;<br></code></pre></td></tr></table></figure>

<p>这个逻辑还需要完善下。</p>
<figure class="highlight javascript"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br></pre></td><td class="code"><pre><code class="hljs javascript">&lt;script&gt;<br><span class="hljs-comment">// 页面加载完成后执行</span><br><span class="hljs-variable language_">document</span>.<span class="hljs-title function_">addEventListener</span>(<span class="hljs-string">&#x27;DOMContentLoaded&#x27;</span>, <span class="hljs-keyword">function</span>(<span class="hljs-params"></span>) &#123;<br>    <span class="hljs-comment">// 检查是否首次访问（使用更安全的存储键名）</span><br>    <span class="hljs-keyword">if</span> (!sessionStorage.<span class="hljs-title function_">getItem</span>(<span class="hljs-string">&#x27;hasShownPopup&#x27;</span>)) &#123;<br>        <span class="hljs-comment">// 创建弹窗HTML结构</span><br>        <span class="hljs-keyword">const</span> popupHTML = <span class="hljs-string">`</span><br><span class="hljs-string">        &lt;div class=&quot;popup-overlay&quot; style=&quot;</span><br><span class="hljs-string">            position: fixed;</span><br><span class="hljs-string">            top: 0;</span><br><span class="hljs-string">            left: 0;</span><br><span class="hljs-string">            width: 100%;</span><br><span class="hljs-string">            height: 100%;</span><br><span class="hljs-string">            background: rgba(0,0,0,0.5);</span><br><span class="hljs-string">            z-index: 9999;</span><br><span class="hljs-string">            display: flex;</span><br><span class="hljs-string">            justify-content: center;</span><br><span class="hljs-string">            align-items: center;</span><br><span class="hljs-string">        &quot;&gt;</span><br><span class="hljs-string">            &lt;div class=&quot;popup-content&quot; style=&quot;</span><br><span class="hljs-string">                background: white;</span><br><span class="hljs-string">                padding: 20px;</span><br><span class="hljs-string">                border-radius: 5px;</span><br><span class="hljs-string">                max-width: 80%;</span><br><span class="hljs-string">            &quot;&gt;</span><br><span class="hljs-string">                &lt;h3&gt;重要公告&lt;/h3&gt;</span><br><span class="hljs-string">                &lt;p&gt;欢迎访问我们的网站！&lt;/p&gt;</span><br><span class="hljs-string">                &lt;button class=&quot;close-btn&quot; style=&quot;</span><br><span class="hljs-string">                    padding: 5px 10px;</span><br><span class="hljs-string">                    background: #007bff;</span><br><span class="hljs-string">                    color: white;</span><br><span class="hljs-string">                    border: none;</span><br><span class="hljs-string">                    border-radius: 3px;</span><br><span class="hljs-string">                    cursor: pointer;</span><br><span class="hljs-string">                &quot;&gt;我知道了&lt;/button&gt;</span><br><span class="hljs-string">            &lt;/div&gt;</span><br><span class="hljs-string">        &lt;/div&gt;</span><br><span class="hljs-string">        `</span>;<br><br>        <span class="hljs-comment">// 插入到页面</span><br>        <span class="hljs-variable language_">document</span>.<span class="hljs-property">body</span>.<span class="hljs-title function_">insertAdjacentHTML</span>(<span class="hljs-string">&#x27;beforeend&#x27;</span>, popupHTML);<br><br>        <span class="hljs-comment">// 添加关闭事件</span><br>        <span class="hljs-variable language_">document</span>.<span class="hljs-title function_">querySelector</span>(<span class="hljs-string">&#x27;.popup-overlay .close-btn&#x27;</span>).<span class="hljs-title function_">addEventListener</span>(<span class="hljs-string">&#x27;click&#x27;</span>, <span class="hljs-keyword">function</span>(<span class="hljs-params"></span>) &#123;<br>            <span class="hljs-variable language_">document</span>.<span class="hljs-title function_">querySelector</span>(<span class="hljs-string">&#x27;.popup-overlay&#x27;</span>).<span class="hljs-property">style</span>.<span class="hljs-property">display</span> = <span class="hljs-string">&#x27;none&#x27;</span>;<br>            <span class="hljs-comment">// 标记为已显示（使用sessionStorage关闭浏览器后失效）</span><br>            sessionStorage.<span class="hljs-title function_">setItem</span>(<span class="hljs-string">&#x27;hasShownPopup&#x27;</span>, <span class="hljs-string">&#x27;true&#x27;</span>);<br>        &#125;);<br>    &#125;<br>&#125;);<br>&lt;/script&gt;<br></code></pre></td></tr></table></figure>

<p><img src="http://blog.memory-life.xyz/image-20250528181435257.png" alt="image-20250528181435257"></p>
<p>。。这是个什么效果，够难看的，不过基本实现了，现在需要替换这个难看的页面。</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br></pre></td><td class="code"><pre><code class="hljs js">&lt;script&gt;<br>  <span class="hljs-comment">// 页面加载完成后执行</span><br>  <span class="hljs-variable language_">document</span>.<span class="hljs-title function_">addEventListener</span>(<span class="hljs-string">&#x27;DOMContentLoaded&#x27;</span>, <span class="hljs-keyword">function</span>(<span class="hljs-params"></span>) &#123;<br>    <span class="hljs-comment">// 检查是否首次访问</span><br>    <span class="hljs-keyword">if</span> (!<span class="hljs-variable language_">localStorage</span>.<span class="hljs-title function_">getItem</span>(<span class="hljs-string">&#x27;hasShownPopup&#x27;</span>)) &#123;<br>      <span class="hljs-comment">// 动态加载notice.ejs内容</span><br>      <span class="hljs-title function_">fetch</span>(<span class="hljs-string">&#x27;_partials/notice.ejs&#x27;</span>)  <span class="hljs-comment">// 替换为实际路径</span><br>        .<span class="hljs-title function_">then</span>(<span class="hljs-function"><span class="hljs-params">response</span> =&gt;</span> response.<span class="hljs-title function_">text</span>())<br>        .<span class="hljs-title function_">then</span>(<span class="hljs-function"><span class="hljs-params">html</span> =&gt;</span> &#123;<br>          <span class="hljs-comment">// 插入到页面body末尾</span><br>          <span class="hljs-variable language_">document</span>.<span class="hljs-property">body</span>.<span class="hljs-title function_">insertAdjacentHTML</span>(<span class="hljs-string">&#x27;beforeend&#x27;</span>, html);<br><br>          <span class="hljs-comment">// 手动初始化Bootstrap模态框</span><br>          $(<span class="hljs-string">&#x27;#modalNotice&#x27;</span>).<span class="hljs-title function_">modal</span>(<span class="hljs-string">&#x27;show&#x27;</span>);<br><br>          <span class="hljs-comment">// 标记为已显示</span><br>          <span class="hljs-variable language_">localStorage</span>.<span class="hljs-title function_">setItem</span>(<span class="hljs-string">&#x27;hasShownPopup&#x27;</span>, <span class="hljs-string">&#x27;true&#x27;</span>);<br><br>          <span class="hljs-comment">// 监听关闭事件</span><br>          $(<span class="hljs-string">&#x27;#modalNotice&#x27;</span>).<span class="hljs-title function_">on</span>(<span class="hljs-string">&#x27;hidden.bs.modal&#x27;</span>, <span class="hljs-keyword">function</span> (<span class="hljs-params"></span>) &#123;<br>            <span class="hljs-comment">// 可选的后续处理</span><br>          &#125;);<br>        &#125;)<br>        .<span class="hljs-title function_">catch</span>(<span class="hljs-function"><span class="hljs-params">error</span> =&gt;</span> &#123;<br>          <span class="hljs-variable language_">console</span>.<span class="hljs-title function_">error</span>(<span class="hljs-string">&#x27;加载公告栏失败:&#x27;</span>, error);<br>          <span class="hljs-comment">// 备用方案：显示简单弹窗</span><br>          <span class="hljs-keyword">const</span> fallbackHTML = <span class="hljs-string">`</span><br><span class="hljs-string">                &lt;div class=&quot;modal-backdrop&quot; style=&quot;/* 样式 */&quot;&gt;</span><br><span class="hljs-string">                    &lt;div class=&quot;modal-content&quot;&gt;/* 内容 */&lt;/div&gt;</span><br><span class="hljs-string">                &lt;/div&gt;`</span>;<br>          <span class="hljs-variable language_">document</span>.<span class="hljs-property">body</span>.<span class="hljs-title function_">insertAdjacentHTML</span>(<span class="hljs-string">&#x27;beforeend&#x27;</span>, fallbackHTML);<br>        &#125;);<br>    &#125;<br>  &#125;);<br>&lt;/script&gt;<br></code></pre></td></tr></table></figure>

<p>效果不错。</p>
<p><a target="_blank" rel="noopener" href="https://www.iconfont.cn/">iconfont-阿里巴巴矢量图标库</a></p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><code class="hljs ejs">&lt;% if(theme.search.enable) &#123; %&gt;<br>      &lt;li class=&quot;nav-item&quot; id=&quot;search-btn&quot;&gt;<br>          &lt;a class=&quot;nav-link&quot; target=&quot;_self&quot; href=&quot;javascript:;&quot; data-toggle=&quot;modal&quot; data-target=&quot;#modalNotice&quot; aria-label=&quot;Search&quot;&gt;<br>              &lt;i class=&quot;iconfont icon-book&quot;&gt;&lt;/i&gt;<br>              &lt;span&gt;公告&lt;/span&gt;<br>          &lt;/a&gt;<br>      &lt;/li&gt;<br>      &lt;% import_js(theme.static_prefix.internal_js, &#x27;local-search.js&#x27;) %&gt;<br>  &lt;% &#125; %&gt;<br></code></pre></td></tr></table></figure>

<p>在<code>zh-CH.yml</code>配置中，编写公告基本配置。</p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-attr">notice:</span><br>  <span class="hljs-attr">title:</span> <span class="hljs-string">&quot;公告&quot;</span><br>  <span class="hljs-attr">content:</span> <span class="hljs-string">&quot;公告内容&quot;</span><br></code></pre></td></tr></table></figure>

<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br></pre></td><td class="code"><pre><code class="hljs ejs">&lt;!-- 博客 - 公告栏 --&gt;<br>&lt;div<br>        class=&quot;modal fade&quot;<br>        id=&quot;modalNotice&quot;<br>        tabindex=&quot;-1&quot;<br>        role=&quot;dialog&quot;<br>        aria-labelledby=&quot;ModalLabel&quot;<br>        aria-hidden=&quot;true&quot;<br>&gt;<br>    &lt;div class=&quot;modal-dialog modal-dialog-scrollable modal-lg&quot; role=&quot;document&quot;&gt;<br>        &lt;div class=&quot;modal-content&quot;&gt;<br>            &lt;div class=&quot;modal-header text-center&quot;&gt;<br>                &lt;h4 class=&quot;modal-title w-100 font-weight-bold&quot;&gt;<br>                    &lt;%= __(&#x27;notice.title&#x27;) %&gt;<br>                &lt;/h4&gt;<br>                &lt;button<br>                        type=&quot;button&quot;<br>                        id=&quot;local-search-close&quot;<br>                        class=&quot;close&quot;<br>                        data-dismiss=&quot;modal&quot;<br>                        aria-label=&quot;Close&quot;<br>                &gt;<br>                    &lt;span aria-hidden=&quot;true&quot;&gt;&amp;times;&lt;/span&gt;<br>                &lt;/button&gt;<br>            &lt;/div&gt;<br>            &lt;div class=&quot;modal-body mx-3&quot;&gt;<br>                &lt;div class=&quot;md-form mb-5&quot;&gt;<br>                    &lt;input<br>                            type=&quot;text&quot;<br>                            id=&quot;local-search-input&quot;<br>                            class=&quot;form-control validate&quot;<br>                    /&gt;<br>                    &lt;label data-error=&quot;x&quot; data-success=&quot;v&quot; for=&quot;local-search-input&quot;<br>                    &gt;&lt;%= __(&#x27;notice.content&#x27;) %&gt;&lt;/label<br>                    &gt;<br>                &lt;/div&gt;<br>                &lt;div class=&quot;list-group&quot; id=&quot;local-search-result&quot;&gt;&lt;/div&gt;<br>            &lt;/div&gt;<br>        &lt;/div&gt;<br>    &lt;/div&gt;<br>&lt;/div&gt;<br></code></pre></td></tr></table></figure>

<p><img src="http://blog.memory-life.xyz/image-20250528183857628.png" alt="image-20250528183857628"></p>
<p>新的公告栏。</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br><span class="line">82</span><br><span class="line">83</span><br><span class="line">84</span><br><span class="line">85</span><br><span class="line">86</span><br><span class="line">87</span><br><span class="line">88</span><br><span class="line">89</span><br><span class="line">90</span><br><span class="line">91</span><br><span class="line">92</span><br><span class="line">93</span><br><span class="line">94</span><br><span class="line">95</span><br><span class="line">96</span><br><span class="line">97</span><br><span class="line">98</span><br><span class="line">99</span><br><span class="line">100</span><br><span class="line">101</span><br><span class="line">102</span><br><span class="line">103</span><br><span class="line">104</span><br><span class="line">105</span><br><span class="line">106</span><br></pre></td><td class="code"><pre><code class="hljs ejs">&lt;!-- 博客 - 公告栏 --&gt;<br>&lt;div class=&quot;modal fade&quot; id=&quot;modalNotice&quot; tabindex=&quot;-1&quot; role=&quot;dialog&quot; aria-hidden=&quot;true&quot;&gt;<br>  &lt;div class=&quot;modal-dialog modal-dialog-scrollable modal-lg&quot; role=&quot;document&quot;&gt;<br>    &lt;div class=&quot;modal-content&quot; style=&quot;<br>      background: linear-gradient(135deg, #fff9f0 0%, #fff3e0 100%);<br>      border: 1px solid #e6d8b5;<br>      box-shadow: 0 5px 20px rgba(0,0,0,0.15);<br>      border-radius: 10px;<br>      overflow: hidden;<br>    &quot;&gt;<br>      &lt;!-- 公告头部 --&gt;<br>      &lt;div class=&quot;modal-header text-center&quot; style=&quot;<br>        background: #8b6d3b;<br>        color: white;<br>        border-bottom: 2px solid #7a5f32;<br>        padding: 15px 20px;<br>      &quot;&gt;<br>        &lt;h4 class=&quot;modal-title w-100 font-weight-bold&quot; style=&quot;<br>          font-family: &#x27;Microsoft YaHei&#x27;, sans-serif;<br>          letter-spacing: 1px;<br>          text-shadow: 1px 1px 2px rgba(0,0,0,0.2);<br>        &quot;&gt;<br>          &lt;i class=&quot;fas fa-bullhorn mr-2&quot;&gt;&lt;/i&gt;<br>          &lt;%= __(&#x27;notice.title&#x27;) || &#x27;站点公告&#x27; %&gt;<br>        &lt;/h4&gt;<br>        &lt;button type=&quot;button&quot; class=&quot;close&quot; data-dismiss=&quot;modal&quot; aria-label=&quot;Close&quot; style=&quot;color: white;&quot;&gt;<br>          &lt;span aria-hidden=&quot;true&quot; style=&quot;font-size: 1.5em;&quot;&gt;&amp;times;&lt;/span&gt;<br>        &lt;/button&gt;<br>      &lt;/div&gt;<br><br>      &lt;!-- 公告内容区 --&gt;<br>      &lt;div class=&quot;modal-body&quot; style=&quot;padding: 25px;&quot;&gt;<br>        &lt;!-- 静态公告列表 --&gt;<br>        &lt;div class=&quot;announcement-list&quot; style=&quot;margin-bottom: 20px;&quot;&gt;<br>          &lt;div class=&quot;announcement-item mb-3 p-3&quot; style=&quot;<br>            background: white;<br>            border-left: 4px solid #8b6d3b;<br>            box-shadow: 0 2px 5px rgba(0,0,0,0.05);<br>            transition: all 0.3s ease;<br>          &quot;&gt;<br>            &lt;h5 style=&quot;color: #5c4d3d; font-weight: 600;&quot;&gt;<br>              &lt;i class=&quot;fas fa-calendar-check mr-2&quot;&gt;&lt;/i&gt;系统维护通知<br>            &lt;/h5&gt;<br>            &lt;p class=&quot;mb-0&quot; style=&quot;color: #666; line-height: 1.6;&quot;&gt;<br>              站点将于本周六凌晨2:00-4:00进行例行维护，期间可能出现短暂无法访问的情况。<br>            &lt;/p&gt;<br>            &lt;div class=&quot;text-right mt-2&quot; style=&quot;color: #999; font-size: 0.85em;&quot;&gt;<br>              &lt;i class=&quot;far fa-clock mr-1&quot;&gt;&lt;/i&gt;2023-11-15<br>            &lt;/div&gt;<br>          &lt;/div&gt;<br><br>          &lt;div class=&quot;announcement-item mb-3 p-3&quot; style=&quot;<br>            background: white;<br>            border-left: 4px solid #6b8b3b;<br>            box-shadow: 0 2px 5px rgba(0,0,0,0.05);<br>          &quot;&gt;<br>            &lt;h5 style=&quot;color: #4d5c3d; font-weight: 600;&quot;&gt;<br>              &lt;i class=&quot;fas fa-book-open mr-2&quot;&gt;&lt;/i&gt;阅读体验升级<br>            &lt;/h5&gt;<br>            &lt;p class=&quot;mb-0&quot; style=&quot;color: #666; line-height: 1.6;&quot;&gt;<br>              我们优化了文章排版和字体渲染，夜间模式现已支持自定义色调调节功能。<br>            &lt;/p&gt;<br>          &lt;/div&gt;<br>        &lt;/div&gt;<br><br>        &lt;!-- 动态搜索区（保留原有结构） --&gt;<br>        &lt;div class=&quot;md-form mb-4&quot;&gt;<br>          &lt;input type=&quot;text&quot; id=&quot;local-search-input&quot; class=&quot;form-control validate&quot; placeholder=&quot;搜索公告...&quot; style=&quot;<br>            border-radius: 20px;<br>            padding: 10px 15px;<br>            border: 1px solid #ddd;<br>            box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);<br>          &quot;&gt;<br>        &lt;/div&gt;<br><br>        &lt;!-- 公告搜索结果 --&gt;<br>        &lt;div class=&quot;list-group&quot; id=&quot;local-search-result&quot; style=&quot;<br>          max-height: 300px;<br>          overflow-y: auto;<br>          border-radius: 8px;<br>        &quot;&gt;&lt;/div&gt;<br>      &lt;/div&gt;<br><br>      &lt;!-- 公告页脚 --&gt;<br>      &lt;div class=&quot;modal-footer&quot; style=&quot;<br>        background: #f8f5ee;<br>        border-top: 1px solid #e6d8b5;<br>        padding: 12px 20px;<br>        justify-content: space-between;<br>      &quot;&gt;<br>        &lt;small style=&quot;color: #8b6d3b;&quot;&gt;<br>          &lt;i class=&quot;fas fa-info-circle mr-1&quot;&gt;&lt;/i&gt;公告更新于 &lt;%= new Date().toLocaleDateString() %&gt;<br>        &lt;/small&gt;<br>        &lt;button type=&quot;button&quot; class=&quot;btn btn-sm&quot; data-dismiss=&quot;modal&quot; style=&quot;<br>          background: #8b6d3b;<br>          color: white;<br>          border-radius: 4px;<br>          padding: 5px 15px;<br>          border: none;<br>        &quot;&gt;<br>          &lt;i class=&quot;fas fa-check mr-1&quot;&gt;&lt;/i&gt;我知道了<br>        &lt;/button&gt;<br>      &lt;/div&gt;<br>    &lt;/div&gt;<br>  &lt;/div&gt;<br>&lt;/div&gt;<br></code></pre></td></tr></table></figure>

<p><img src="http://blog.memory-life.xyz/image-20250528184504151.png" alt="image-20250528184504151"></p>
<p>这个效果确实有点一言难尽，不过仍有可取之处。</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><code class="hljs ejs">&lt;div class=&quot;modal-body&quot;&gt;<br>      &lt;div class=&quot;md-form&quot;&gt;<br>          &lt;label data-error=&quot;x&quot; data-success=&quot;v&quot; for=&quot;local-search-input&quot;&gt;&lt;%= __(&#x27;notice.keyword&#x27;) %&gt;&lt;/label&gt;<br>      &lt;/div&gt;<br>  &lt;/div&gt;<br></code></pre></td></tr></table></figure>

<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br></pre></td><td class="code"><pre><code class="hljs ejs">&lt;!-- 静态公告列表 --&gt;<br>           &lt;div class=&quot;announcement-list&quot; style=&quot;margin-bottom: 20px;&quot;&gt;<br>               &lt;div class=&quot;announcement-item mb-3 p-3&quot;&gt;<br>                   &lt;h5 style=&quot;color: #d38532; font-weight: 600;&quot;&gt;<br>                       &lt;i class=&quot;fas fa-calendar-check mr-2&quot;&gt;&lt;/i&gt;系统维护通知<br>                   &lt;/h5&gt;<br>                   &lt;p class=&quot;mb-0&quot; style=&quot;line-height: 1.6;&quot;&gt;<br>                       站点将于本周六凌晨2:00-4:00进行例行维护，期间可能出现短暂无法访问的情况。<br>                   &lt;/p&gt;<br>               &lt;/div&gt;<br><br>               &lt;div class=&quot;announcement-item mb-3 p-3&quot;&gt;<br>                   &lt;h5 style=&quot;color: #6cc70b; font-weight: 600;&quot;&gt;<br>                       &lt;i class=&quot;fas fa-book-open mr-2&quot;&gt;&lt;/i&gt;阅读体验升级<br>                   &lt;/h5&gt;<br>                   &lt;p class=&quot;mb-0&quot; style=&quot; line-height: 1.6;&quot;&gt;<br>                       我们优化了文章排版和字体渲染，夜间模式现已支持自定义色调调节功能。<br>                   &lt;/p&gt;<br>               &lt;/div&gt;<br>           &lt;/div&gt;<br></code></pre></td></tr></table></figure>

<p><img src="http://blog.memory-life.xyz/image-20250528190107431.png" alt="image-20250528190107431"></p>
<p>基本调整完毕。</p>
<figure class="highlight xml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><code class="hljs xml"><span class="hljs-tag">&lt;<span class="hljs-name">button</span> <span class="hljs-attr">type</span>=<span class="hljs-string">&quot;button&quot;</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;close&quot;</span> <span class="hljs-attr">data-dismiss</span>=<span class="hljs-string">&quot;modal&quot;</span> <span class="hljs-attr">aria-label</span>=<span class="hljs-string">&quot;Close&quot;</span> <span class="hljs-attr">style</span>=<span class="hljs-string">&quot;color: white;&quot;</span>&gt;</span><br>    <span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">aria-hidden</span>=<span class="hljs-string">&quot;true&quot;</span> <span class="hljs-attr">style</span>=<span class="hljs-string">&quot;font-size: 1.5em;&quot;</span>&gt;</span><span class="hljs-symbol">&amp;times;</span><span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span><br><span class="hljs-tag">&lt;/<span class="hljs-name">button</span>&gt;</span><br></code></pre></td></tr></table></figure>

<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br></pre></td><td class="code"><pre><code class="hljs ejs">&lt;!-- 博客 - 公告栏 --&gt;<br>&lt;div class=&quot;modal fade&quot; id=&quot;modalNotice&quot; tabindex=&quot;-1&quot; role=&quot;dialog&quot; aria-hidden=&quot;true&quot;<br>     style=&quot;font-family: &#x27;Ma Shan Zheng&#x27;, cursive; /* 需引入此中文字体 */color: #ffffff;&quot;&gt;<br>    &lt;div class=&quot;modal-dialog modal-dialog-scrollable modal-lg&quot; role=&quot;document&quot;&gt;<br>        &lt;div class=&quot;modal-content&quot; style=&quot;border-radius: 6px;&quot;&gt;<br>            &lt;!-- 公告头部 --&gt;<br>            &lt;div class=&quot;modal-header text-center&quot;&gt;<br>                &lt;h4 class=&quot;modal-title w-100 font-weight-bold&quot;<br>                    style=&quot;font-family: &#x27;Microsoft YaHei&#x27;, sans-serif;letter-spacing: 1px;text-shadow: 1px 1px 2px rgba(0,0,0,0.2);color: #ffffff&quot;&gt;<br>                    &lt;i class=&quot;fas fa-bullhorn mr-2&quot;&gt; &lt;%= __(&#x27;notice.title&#x27;) || &#x27;站点公告&#x27; %&gt;&lt;/i&gt;<br>                &lt;/h4&gt;<br>            &lt;/div&gt;<br><br>            &lt;!-- 公告内容区 --&gt;<br>            &lt;div class=&quot;modal-body&quot; style=&quot;padding: 25px;&quot;&gt;<br>                &lt;!-- 静态公告列表 --&gt;<br>                &lt;div class=&quot;announcement-list&quot; style=&quot;margin-bottom: 20px;&quot;&gt;<br>                     &lt;div class=&quot;announcement-item mb-3 p-3&quot;&gt;<br>                        &lt;h5 style=&quot;color: #d38532; font-weight: 600;&quot;&gt;<br>                            &lt;i class=&quot;fas fa-calendar-check mr-2&quot;&gt;&lt;/i&gt;系统维护通知<br>                        &lt;/h5&gt;<br>                        &lt;p class=&quot;mb-0&quot; style=&quot;color: #ffffff; line-height: 1.6;&quot;&gt;<br>                            站点将于本周六凌晨2:00-4:00进行例行维护，期间可能出现短暂无法访问的情况。<br>                        &lt;/p&gt;<br>                    &lt;/div&gt;<br><br>                    &lt;div class=&quot;announcement-item mb-3 p-3&quot;&gt;<br>                        &lt;h5 style=&quot;color: #6cc70b; font-weight: 600;&quot;&gt;<br>                            &lt;i class=&quot;fas fa-book-open mr-2&quot;&gt;&lt;/i&gt;阅读体验升级<br>                        &lt;/h5&gt;<br>                        &lt;p class=&quot;mb-0&quot; style=&quot;color: #ffffff; line-height: 1.6;&quot;&gt;<br>                            我们优化了文章排版和字体渲染，夜间模式现已支持自定义色调调节功能。<br>                        &lt;/p&gt;<br>                    &lt;/div&gt;<br>                &lt;/div&gt;<br><br>                &lt;!-- 公告页脚 --&gt;<br>                &lt;div class=&quot;modal-footer&quot;<br>                     style=&quot;border-top: 1px solid #ffffff;padding: 12px 20px;justify-content: space-between;&quot;&gt;<br>                    &lt;small style=&quot;color: #ffffff;&quot;&gt;<br>                        &lt;i class=&quot;iconfont icon-pen&quot;&gt;&lt;/i&gt;<br>                        &lt;i class=&quot;fas fa-info-circle mr-1&quot;&gt;&lt;/i&gt;芒种前夕 · 旅途第813天<br>                        · &lt;%= new Date().toLocaleDateString() %&gt;<br>                    &lt;/small&gt;<br>                    &lt;button id=&quot;confirm-btn&quot; type=&quot;button&quot; class=&quot;btn btn-sm&quot; data-dismiss=&quot;modal&quot; style=&quot;background: #a0a0a0;color: #ffffff;border-radius: 4px;padding: 5px 15px;border: none;&quot;&gt;<br>                        &lt;i class=&quot;fas fa-check mr-1&quot; style=&quot;color: #ffffff;font-size: medium&quot;&gt;心已阅&lt;/i&gt;<br>                    &lt;/button&gt;<br>                &lt;/div&gt;<br>            &lt;/div&gt;<br>        &lt;/div&gt;<br>    &lt;/div&gt;<br></code></pre></td></tr></table></figure>

<p><img src="http://blog.memory-life.xyz/image-20250528195214641.png" alt="image-20250528195214641"></p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br></pre></td><td class="code"><pre><code class="hljs ejs">&lt;!-- 公告内容区 --&gt;<br>            &lt;div class=&quot;modal-body&quot; style=&quot;padding: 25px;&quot;&gt;<br>                &lt;!-- 静态公告列表 --&gt;<br>                &lt;div class=&quot;announcement-list&quot; style=&quot;margin-bottom: 20px;&quot;&gt;<br>                    &lt;div class=&quot;announcement-item mb-3 p-3&quot;&gt;<br>                        &lt;h2 style=&quot;color: #d38532; font-weight: 600;&quot;&gt;<br>                            &lt;i class=&quot;fas fa-calendar-check mr-2&quot;&gt;&lt;/i&gt;系统维护通知<br>                        &lt;/h2&gt;<br>                        &lt;p class=&quot;mb-0&quot; style=&quot;color: #ffffff; line-height: 1.6;&quot;&gt;<br>                            你们好！<br>                        &lt;/p&gt;&lt;p class=&quot;mb-0&quot; style=&quot;color: #ffffff; line-height: 1.6;&quot;&gt;<br>                            建站后的第813天，在百忙之中总算又能抽出时间来，对整个博客站点功能做整体的规划及优化完善。<br>                        &lt;/p&gt;&lt;p class=&quot;mb-0&quot; style=&quot;color: #ffffff; line-height: 1.6;&quot;&gt;<br>                            在刚刚过去的几年时间里，往事皆以笔墨挥毫于时光素笺之上，数百天如一日，故事的书写从未间断过。<br>                        &lt;/p&gt;&lt;p class=&quot;mb-0&quot; style=&quot;color: #ffffff; line-height: 1.6;&quot;&gt;<br>                            时光悠悠，日月如流，过往的蹉跎岁月总在不经意间在心间回眸。<br>                        &lt;/p&gt;&lt;p class=&quot;mb-0&quot; style=&quot;color: #ffffff; line-height: 1.6;&quot;&gt;<br>                            俯仰之间，轻舟已过万重山。<br>                        &lt;/p&gt;&lt;p class=&quot;mb-0&quot; style=&quot;color: #ffffff; line-height: 1.6;&quot;&gt;<br>                            蹉跎之处，往事皆成云烟散。<br>                        &lt;/p&gt;&lt;p class=&quot;mb-0&quot; style=&quot;color: #ffffff; line-height: 1.6;&quot;&gt;<br>                            这几年的时光过得太快了，好像过去这段岁月里的所有事情都发生在一瞬间。<br>                        &lt;/p&gt;&lt;p class=&quot;mb-0&quot; style=&quot;color: #ffffff; line-height: 1.6;&quot;&gt;<br>                            这几年的时光同样太久了，久到那些时日里仿佛囊括了自己的整个前半生。<br>                        &lt;/p&gt;&lt;p class=&quot;mb-0&quot; style=&quot;color: #ffffff; line-height: 1.6;&quot;&gt;<br>                            八百余个昼夜，当时只道是地久天长，如今回望，不过浮光掠影间的一瞬。<br>                        &lt;/p&gt;<br>                    &lt;/div&gt;<br>                    &lt;div class=&quot;announcement-item mb-3 p-3&quot;&gt;<br>                        &lt;h2 style=&quot;color: #6cc70b; font-weight: 600;&quot;&gt;<br>                            &lt;i class=&quot;fas fa-book-open mr-2&quot;&gt;&lt;/i&gt;阅读体验升级<br>                        &lt;/h2&gt;<br>                        &lt;p class=&quot;mb-0&quot; style=&quot;color: #ffffff; line-height: 1.6;&quot;&gt;<br>                            言简意赅，简明扼要，即刻值此记录下本站点今日以来的功能调整，更新日志以及后续的扩展规划。<br>                        &lt;/p&gt;&lt;p class=&quot;mb-0&quot; style=&quot;color: #ffffff; line-height: 1.6;&quot;&gt;<br>                            1、新增博文“溯源计划”，旨在用先进的数字技术留住过去的旧时光，让家族的记忆在数字云端生长发芽，全站博文数量已达90+。<br>                        &lt;/p&gt;&lt;p class=&quot;mb-0&quot; style=&quot;color: #ffffff; line-height: 1.6;&quot;&gt;<br>                            2、自去年夏天站点新增了“评论回复”功能后，至今时隔十余月，在芒种前夕本站久违地上线“围栏告示”功能，本公告栏会不定时更新，持续跟进记录最新站点功能调整日志，更多精彩内容请敬请期待。<br>                        &lt;/p&gt;&lt;p class=&quot;mb-0&quot; style=&quot;color: #ffffff; line-height: 1.6;&quot;&gt;<br>                            3、最近几周时间里，考虑到图文流量费用收取问题，暂时关闭了七牛云对象存储私有空间访问权限，故博文内的图文无法正常预览，择日考虑开启访问权限。<br>                        &lt;/p&gt;&lt;p class=&quot;mb-0&quot; style=&quot;color: #ffffff; line-height: 1.6;&quot;&gt;<br>                            4、后续计划实现壁纸下载功能，均为个人收集的共150+超高分辨率精美壁纸，提供在线预览以及下载功能。<br>                        &lt;/p&gt;&lt;p class=&quot;mb-0&quot; style=&quot;color: #ffffff; line-height: 1.6;&quot;&gt;<br>                            5、规划完善文章内分页功能，并提供“最近更新”的文章列表，计划收录更新率较高的文章，譬如：阳台日记、叙事之外、岁月如歌、游戏人生等等，尽可能多的提升在线浏览和阅读体验。<br>                        &lt;/p&gt;&lt;p class=&quot;mb-0&quot; style=&quot;color: #ffffff; line-height: 1.6;&quot;&gt;<br>                            6、持续优化完善友链页面，整理归档个人常用的高质量网站合集，无偿分享给有缘人。<br>                        &lt;/p&gt;&lt;p class=&quot;mb-0&quot; style=&quot;color: #ffffff; line-height: 1.6;&quot;&gt;<br>                            此公告最后更新于：2025/05/28晚。<br>                        &lt;/p&gt;<br>                    &lt;/div&gt;<br>                &lt;/div&gt;<br></code></pre></td></tr></table></figure>

<p><img src="http://blog.memory-life.xyz/image-20250528231020442.png" alt="image-20250528231020442"></p>
<p>看着总感觉怪怪的。</p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-string">&lt;small</span> <span class="hljs-string">style=&quot;display:</span> <span class="hljs-string">block;</span> <span class="hljs-attr">font-family:</span> <span class="hljs-string">&#x27;STKaiti&#x27;</span><span class="hljs-string">,</span> <span class="hljs-string">serif;</span> <span class="hljs-attr">font-size:</span> <span class="hljs-number">0.</span><span class="hljs-string">6em;</span> <span class="hljs-attr">color:</span> <span class="hljs-comment">#a0a0a0; margin-top: 3px;&quot;&gt;</span><br>            <span class="hljs-string">旧梦轻拾</span> <span class="hljs-string">·</span> <span class="hljs-string">谨识</span><br>        <span class="hljs-string">&lt;/small&gt;</span><br></code></pre></td></tr></table></figure>

<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-string">&lt;span</span> <span class="hljs-string">style=&quot;position:</span> <span class="hljs-string">absolute;</span> <span class="hljs-attr">right:</span> <span class="hljs-number">0</span><span class="hljs-string">;</span> <span class="hljs-attr">bottom:</span> <span class="hljs-number">0</span><span class="hljs-string">;</span> <span class="hljs-attr">font-family:</span> <span class="hljs-string">&#x27;STKaiti&#x27;</span><span class="hljs-string">;</span><br>       <span class="hljs-attr">color:</span> <span class="hljs-comment">#c12c1f; font-size: 0.8em; transform: rotate(-5deg);&quot;&gt;</span><br>    <span class="hljs-string">旧梦轻拾</span><br><span class="hljs-string">&lt;/span&gt;</span><br></code></pre></td></tr></table></figure>

<figure class="highlight xml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br><span class="line">82</span><br><span class="line">83</span><br><span class="line">84</span><br><span class="line">85</span><br><span class="line">86</span><br><span class="line">87</span><br><span class="line">88</span><br><span class="line">89</span><br><span class="line">90</span><br><span class="line">91</span><br></pre></td><td class="code"><pre><code class="hljs xml"><span class="hljs-comment">&lt;!-- 公告内容区 --&gt;</span><br>          <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;modal-body&quot;</span> <span class="hljs-attr">style</span>=<span class="hljs-string">&quot;padding: 2rem; max-height: 70vh; overflow-y: auto; width: 800px;&quot;</span>&gt;</span><br>              <span class="hljs-comment">&lt;!-- 图片容器（保持宽高比自适应） --&gt;</span><br>              <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;announcement-hero&quot;</span> <span class="hljs-attr">style</span>=<span class="hljs-string">&quot;margin-bottom: 2rem;&quot;</span>&gt;</span><br>                  <span class="hljs-tag">&lt;<span class="hljs-name">img</span> <span class="hljs-attr">src</span>=<span class="hljs-string">&quot;https://img1.baidu.com/it/u=958843530,3826099174&amp;fm=253&amp;fmt=auto&amp;app=120&amp;f=JPEG?w=1422&amp;h=800&quot;</span></span><br><span class="hljs-tag">                       <span class="hljs-attr">alt</span>=<span class="hljs-string">&quot;时光溯洄题图&quot;</span></span><br><span class="hljs-tag">                       <span class="hljs-attr">style</span>=<span class="hljs-string">&quot;width: 100%; max-height: 400px; object-fit: cover;</span></span><br><span class="hljs-string"><span class="hljs-tag">              border-radius: 4px; box-shadow: 0 2px 12px rgba(0,0,0,0.1);&quot;</span></span><br><span class="hljs-tag">                       <span class="hljs-attr">loading</span>=<span class="hljs-string">&quot;lazy&quot;</span></span><br><span class="hljs-tag">                       <span class="hljs-attr">srcset</span>=<span class="hljs-string">&quot;</span></span><br><span class="hljs-string"><span class="hljs-tag">          https://example.com/path/to/2k-image.webp 2048w,</span></span><br><span class="hljs-string"><span class="hljs-tag">          https://example.com/path/to/1k-image.webp 1024w,</span></span><br><span class="hljs-string"><span class="hljs-tag">          https://example.com/path/to/mobile-image.webp 640w</span></span><br><span class="hljs-string"><span class="hljs-tag">       &quot;</span></span><br><span class="hljs-tag">                       <span class="hljs-attr">sizes</span>=<span class="hljs-string">&quot;(max-width: 768px) 100vw, 80vw&quot;</span>&gt;</span><br>              <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span><br>              <span class="hljs-comment">&lt;!-- 静态公告列表 --&gt;</span><br>              <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;announcement-list&quot;</span>&gt;</span><br>                  <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;announcement-item mb-4 p-4&quot;</span></span><br><span class="hljs-tag">                       <span class="hljs-attr">style</span>=<span class="hljs-string">&quot;background: rgba(255,255,255,0.05); border-radius: 8px;&quot;</span>&gt;</span><br>                      <span class="hljs-tag">&lt;<span class="hljs-name">h2</span> <span class="hljs-attr">style</span>=<span class="hljs-string">&quot;color: #d38532; font-weight: 600; font-size: 1.5rem; margin-bottom: 1.2rem; letter-spacing: 0.5px;&quot;</span>&gt;</span><br>                          <span class="hljs-tag">&lt;<span class="hljs-name">i</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;fas fa-calendar-check mr-2&quot;</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">i</span>&gt;</span>时光溯洄<br>                          <span class="hljs-tag">&lt;<span class="hljs-name">small</span> <span class="hljs-attr">style</span>=<span class="hljs-string">&quot;display: block; font-size: 0.6em; color: #b8b8b8;text-align: right;&quot;</span>&gt;</span>——<br>                              关于本站那些被数字化的晨昏<span class="hljs-tag">&lt;/<span class="hljs-name">small</span>&gt;</span><br>                      <span class="hljs-tag">&lt;/<span class="hljs-name">h2</span>&gt;</span><br>                      <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">style</span>=<span class="hljs-string">&quot;color: #e0e0e0; line-height: 1.8; font-size: 1.05rem; letter-spacing: 0.3px;&quot;</span>&gt;</span><br>                          <span class="hljs-tag">&lt;<span class="hljs-name">p</span> <span class="hljs-attr">style</span>=<span class="hljs-string">&quot;margin-bottom: 1rem; text-indent: 2em;&quot;</span>&gt;</span>你们好！<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span><br>                          <span class="hljs-tag">&lt;<span class="hljs-name">p</span> <span class="hljs-attr">style</span>=<span class="hljs-string">&quot;margin-bottom: 1rem; text-indent: 2em;&quot;</span>&gt;</span><br>                              建站后的第813天，在百忙之中总算又能抽出时间来，对整个博客站点功能做整体的规划及优化完善。<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span><br>                          <span class="hljs-tag">&lt;<span class="hljs-name">p</span> <span class="hljs-attr">style</span>=<span class="hljs-string">&quot;margin-bottom: 1rem; text-indent: 2em;&quot;</span>&gt;</span><br>                              在刚刚过去的几年时间里，往事皆以笔墨挥毫于时光素笺之上，数百天如一日，故事的书写从未间断过。<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span><br>                          <span class="hljs-tag">&lt;<span class="hljs-name">p</span> <span class="hljs-attr">style</span>=<span class="hljs-string">&quot;margin-bottom: 1rem; text-indent: 2em; font-style: italic; color: #b8b8b8;&quot;</span>&gt;</span><br>                              时光悠悠，日月如流，过往的蹉跎岁月总在不经意间在心间回眸。<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span><br>                          <span class="hljs-tag">&lt;<span class="hljs-name">p</span> <span class="hljs-attr">style</span>=<span class="hljs-string">&quot;margin-bottom: 1rem; text-indent: 2em; font-weight: 500; color: #ffffff;&quot;</span>&gt;</span><br>                              俯仰之间，轻舟已过万重山。<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span><br>                          <span class="hljs-tag">&lt;<span class="hljs-name">p</span> <span class="hljs-attr">style</span>=<span class="hljs-string">&quot;margin-bottom: 1rem; text-indent: 2em; font-weight: 500; color: #ffffff;&quot;</span>&gt;</span><br>                              蹉跎之处，往事皆成云烟散。<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span><br>                          <span class="hljs-tag">&lt;<span class="hljs-name">p</span> <span class="hljs-attr">style</span>=<span class="hljs-string">&quot;margin-bottom: 1rem; text-indent: 2em;&quot;</span>&gt;</span><br>                              这几年的时光过得太快了，好像过去这段岁月里的所有事情都发生在一瞬间。<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span><br>                          <span class="hljs-tag">&lt;<span class="hljs-name">p</span> <span class="hljs-attr">style</span>=<span class="hljs-string">&quot;margin-bottom: 1rem; text-indent: 2em;&quot;</span>&gt;</span><br>                              这几年的时光同样太久了，久到那些时日里仿佛囊括了自己的整个前半生。<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span><br>                          <span class="hljs-tag">&lt;<span class="hljs-name">p</span> <span class="hljs-attr">style</span>=<span class="hljs-string">&quot;margin-bottom: 0; text-align: right; font-size: 0.95rem; color: #a0a0a0;&quot;</span>&gt;</span>——<br>                              八百余个昼夜，当时只道是地久天长，如今回望，不过浮光掠影间的一瞬。<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span><br>                      <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span><br>                  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span><br><br>                  <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;announcement-item mb-4 p-4&quot;</span></span><br><span class="hljs-tag">                       <span class="hljs-attr">style</span>=<span class="hljs-string">&quot;background: rgba(255,255,255,0.05); border-radius: 8px;&quot;</span>&gt;</span><br>                      <span class="hljs-tag">&lt;<span class="hljs-name">h2</span> <span class="hljs-attr">style</span>=<span class="hljs-string">&quot;color: #6cc70b; font-weight: 600; font-size: 1.5rem; margin-bottom: 1.2rem; letter-spacing: 0.5px;&quot;</span>&gt;</span><br>                          <span class="hljs-tag">&lt;<span class="hljs-name">i</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;fas fa-book-open mr-2&quot;</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">i</span>&gt;</span>墨痕新注<br>                          <span class="hljs-tag">&lt;<span class="hljs-name">small</span> <span class="hljs-attr">style</span>=<span class="hljs-string">&quot;display: block; font-size: 0.6em; color: #b8b8b8;text-align: right;&quot;</span>&gt;</span>——<br>                              功能迭代和未完成的书写<span class="hljs-tag">&lt;/<span class="hljs-name">small</span>&gt;</span><br>                      <span class="hljs-tag">&lt;/<span class="hljs-name">h2</span>&gt;</span><br>                      <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">style</span>=<span class="hljs-string">&quot;color: #e0e0e0; line-height: 1.8; font-size: 1.05rem; letter-spacing: 0.3px;&quot;</span>&gt;</span><br>                          <span class="hljs-tag">&lt;<span class="hljs-name">p</span> <span class="hljs-attr">style</span>=<span class="hljs-string">&quot;margin-bottom: 1.2rem;&quot;</span>&gt;</span><br>                              言简意赅，简明扼要，即刻值此记录下本站点今日以来的功能调整，更新日志以及后续的扩展规划。<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span><br><br>                          <span class="hljs-tag">&lt;<span class="hljs-name">ul</span> <span class="hljs-attr">style</span>=<span class="hljs-string">&quot;padding-left: 1.8rem; margin-bottom: 1.5rem;&quot;</span>&gt;</span><br>                              <span class="hljs-tag">&lt;<span class="hljs-name">li</span> <span class="hljs-attr">style</span>=<span class="hljs-string">&quot;margin-bottom: 0.8rem; position: relative; list-style-type: none;&quot;</span>&gt;</span><br>                                  <span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">style</span>=<span class="hljs-string">&quot;position: absolute; left: -1.8rem; color: #6cc70b;&quot;</span>&gt;</span>◆<span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span><br>                                  新增博文&quot;溯源计划&quot;，旨在用先进的数字技术留住过去的旧时光，让家族的记忆在数字云端生长发芽，全站博文数量已达90+。<br>                              <span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span><br>                              <span class="hljs-tag">&lt;<span class="hljs-name">li</span> <span class="hljs-attr">style</span>=<span class="hljs-string">&quot;margin-bottom: 0.8rem; position: relative; list-style-type: none;&quot;</span>&gt;</span><br>                                  <span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">style</span>=<span class="hljs-string">&quot;position: absolute; left: -1.8rem; color: #6cc70b;&quot;</span>&gt;</span>◆<span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span><br>                                  自去年夏天站点新增了“评论回复”功能后，至今时隔十余月，在芒种前夕本站久违地上线“围栏告示”功能，本公告栏会不定时更新，持续跟进记录最新站点功能调整日志，更多精彩内容请敬请期待。<br>                              <span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span><br>                              <span class="hljs-tag">&lt;<span class="hljs-name">li</span> <span class="hljs-attr">style</span>=<span class="hljs-string">&quot;margin-bottom: 0.8rem; position: relative; list-style-type: none;&quot;</span>&gt;</span><br>                                  <span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">style</span>=<span class="hljs-string">&quot;position: absolute; left: -1.8rem; color: #6cc70b;&quot;</span>&gt;</span>◆<span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span><br>                                  最近几周时间里，考虑到图文流量费用收取问题，暂时关闭了七牛云对象存储私有空间访问权限，故博文内的图文无法正常预览，择日考虑开启访问权限。<br>                              <span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span><br>                              <span class="hljs-tag">&lt;<span class="hljs-name">li</span> <span class="hljs-attr">style</span>=<span class="hljs-string">&quot;margin-bottom: 0.8rem; position: relative; list-style-type: none;&quot;</span>&gt;</span><br>                                  <span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">style</span>=<span class="hljs-string">&quot;position: absolute; left: -1.8rem; color: #6cc70b;&quot;</span>&gt;</span>◆<span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span><br>                                  后续计划实现壁纸下载功能，均为个人收集的共150+超高分辨率精美壁纸，提供在线预览以及下载功能。<br>                              <span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span><br>                              <span class="hljs-tag">&lt;<span class="hljs-name">li</span> <span class="hljs-attr">style</span>=<span class="hljs-string">&quot;margin-bottom: 0.8rem; position: relative; list-style-type: none;&quot;</span>&gt;</span><br>                                  <span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">style</span>=<span class="hljs-string">&quot;position: absolute; left: -1.8rem; color: #6cc70b;&quot;</span>&gt;</span>◆<span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span><br>                                  规划完善文章内分页功能，并提供“最近更新”的文章列表，计划收录更新率较高的文章，譬如：阳台日记、叙事之外、岁月如歌、游戏人生等等，尽可能多的提升在线浏览和阅读体验。<br>                              <span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span><br>                              <span class="hljs-tag">&lt;<span class="hljs-name">li</span> <span class="hljs-attr">style</span>=<span class="hljs-string">&quot;margin-bottom: 0.8rem; position: relative; list-style-type: none;&quot;</span>&gt;</span><br>                                  <span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">style</span>=<span class="hljs-string">&quot;position: absolute; left: -1.8rem; color: #6cc70b;&quot;</span>&gt;</span>◆<span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span><br>                                  持续优化完善友链页面，整理归档个人常用的高质量网站合集，无偿分享给有缘人。<br>                              <span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span><br>                          <span class="hljs-tag">&lt;/<span class="hljs-name">ul</span>&gt;</span><br><br>                          <span class="hljs-tag">&lt;<span class="hljs-name">p</span> <span class="hljs-attr">style</span>=<span class="hljs-string">&quot;margin-bottom: 0; text-align: right; font-size: 0.9rem; color: #8a8a8a;&quot;</span>&gt;</span><br>                              此公告最后更新于：<span class="hljs-tag">&lt;<span class="hljs-name">span</span> <span class="hljs-attr">style</span>=<span class="hljs-string">&quot;color: #6cc70b;&quot;</span>&gt;</span>2025/05/28晚<span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span><br>                          <span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span><br>                      <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span><br>                  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span><br>              <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span><br>          <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span><br></code></pre></td></tr></table></figure>

<p>基本完善。</p>
<p><img src="http://blog.memory-life.xyz/%E3%80%90%E5%93%B2%E9%A3%8E%E5%A3%81%E7%BA%B8%E3%80%91%E5%8A%A8%E6%BC%AB-%E5%A4%95%E9%98%B3%E9%93%81%E8%BD%A8.jpg" alt="【哲风壁纸】动漫-夕阳铁轨"></p>
<blockquote>
<p>2025 年 5 月 29 日</p>
</blockquote>
<p>保留昨晚的源码。</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br><span class="line">82</span><br><span class="line">83</span><br><span class="line">84</span><br><span class="line">85</span><br><span class="line">86</span><br><span class="line">87</span><br><span class="line">88</span><br><span class="line">89</span><br><span class="line">90</span><br><span class="line">91</span><br><span class="line">92</span><br><span class="line">93</span><br><span class="line">94</span><br><span class="line">95</span><br><span class="line">96</span><br><span class="line">97</span><br><span class="line">98</span><br><span class="line">99</span><br><span class="line">100</span><br><span class="line">101</span><br><span class="line">102</span><br><span class="line">103</span><br><span class="line">104</span><br><span class="line">105</span><br><span class="line">106</span><br><span class="line">107</span><br><span class="line">108</span><br><span class="line">109</span><br><span class="line">110</span><br><span class="line">111</span><br><span class="line">112</span><br><span class="line">113</span><br><span class="line">114</span><br><span class="line">115</span><br><span class="line">116</span><br><span class="line">117</span><br><span class="line">118</span><br><span class="line">119</span><br><span class="line">120</span><br><span class="line">121</span><br><span class="line">122</span><br><span class="line">123</span><br><span class="line">124</span><br><span class="line">125</span><br></pre></td><td class="code"><pre><code class="hljs ejs">&lt;!-- 博客 - 公告栏 --&gt;<br>&lt;div class=&quot;modal fade&quot; id=&quot;modalNotice&quot; tabindex=&quot;-1&quot; role=&quot;dialog&quot; aria-hidden=&quot;true&quot;<br>     style=&quot;font-family: &#x27;Ma Shan Zheng&#x27;, cursive; /* 需引入此中文字体 */color: #ffffff;&quot;&gt;<br>    &lt;div class=&quot;modal-dialog modal-dialog-scrollable modal-lg&quot; role=&quot;document&quot;<br>         style=&quot;font-family: &#x27;Ma Shan Zheng&#x27;, cursive;&quot;&gt;<br>        &lt;div class=&quot;modal-content&quot; style=&quot;border-radius: 6px;&quot;&gt;<br>            &lt;!-- 公告头部 --&gt;<br>            &lt;div class=&quot;modal-header text-center&quot;&gt;<br>                &lt;h4 class=&quot;modal-title w-100 font-weight-bold&quot;<br>                    style=&quot;font-family: &#x27;Microsoft YaHei&#x27;, sans-serif;letter-spacing: 1px;text-shadow: 1px 1px 2px rgba(0,0,0,0.2);color: #ffffff&quot;&gt;<br>                    &lt;i class=&quot;fas fa-bullhorn mr-2&quot;&gt; &lt;%= __(&#x27;notice.title&#x27;) || &#x27;站点公告&#x27; %&gt;&lt;/i&gt;<br>                    &lt;small style=&quot;display: block; font-family: &#x27;STKaiti&#x27;, serif; font-size: 0.6em; color: #a0a0a0; margin-top: 3px;&quot;&gt;<br>                        旧梦轻拾 · 谨识<br>                    &lt;/small&gt;<br>                &lt;/h4&gt;<br>            &lt;/div&gt;<br><br>            &lt;!-- 公告内容区 --&gt;<br>            &lt;div class=&quot;modal-body&quot; style=&quot;padding: 2rem; max-height: 70vh; overflow-y: auto; width: 800px;&quot;&gt;<br>                &lt;!-- 图片容器（保持宽高比自适应） --&gt;<br>                &lt;div class=&quot;announcement-hero&quot; style=&quot;margin-bottom: 2rem;&quot;&gt;<br>                    &lt;img src=&quot;http://blog.memory-life.xyz/%E3%80%90%E5%93%B2%E9%A3%8E%E5%A3%81%E7%BA%B8%E3%80%91%E5%8A%A8%E6%BC%AB-%E5%A4%95%E9%98%B3%E9%93%81%E8%BD%A8.jpg&quot;<br>                         alt=&quot;时光溯洄题图&quot;<br>                         style=&quot;width: 100%; max-height: 400px; object-fit: cover;<br>                border-radius: 4px; box-shadow: 0 2px 12px rgba(0,0,0,0.1);&quot;<br>                         loading=&quot;lazy&quot;<br>                         srcset=&quot;<br>            https://example.com/path/to/2k-image.webp 2048w,<br>            https://example.com/path/to/1k-image.webp 1024w,<br>            https://example.com/path/to/mobile-image.webp 640w<br>         &quot;<br>                         sizes=&quot;(max-width: 768px) 100vw, 80vw&quot;&gt;<br>                &lt;/div&gt;<br>                &lt;!-- 静态公告列表 --&gt;<br>                &lt;div class=&quot;announcement-list&quot;&gt;<br>                    &lt;div class=&quot;announcement-item mb-4 p-4&quot;<br>                         style=&quot;background: rgba(255,255,255,0.05); border-radius: 8px;&quot;&gt;<br>                        &lt;h2 style=&quot;color: #d38532; font-weight: 600; font-size: 1.5rem; margin-bottom: 1.2rem; letter-spacing: 0.5px;&quot;&gt;<br>                            &lt;i class=&quot;fas fa-calendar-check mr-2&quot;&gt;&lt;/i&gt;时光溯洄<br>                            &lt;small style=&quot;display: block; font-size: 0.6em; color: #b8b8b8;text-align: right;&quot;&gt;——<br>                                关于本站那些被数字化的晨昏&lt;/small&gt;<br>                        &lt;/h2&gt;<br>                        &lt;div style=&quot;color: #e0e0e0; line-height: 1.8; font-size: 1.05rem; letter-spacing: 0.3px;&quot;&gt;<br>                            &lt;p style=&quot;margin-bottom: 1rem; text-indent: 2em;&quot;&gt;你们好！&lt;/p&gt;<br>                            &lt;p style=&quot;margin-bottom: 1rem; text-indent: 2em;&quot;&gt;<br>                                建站后的第813天，在百忙之中总算又能抽出时间来，对整个博客站点功能做整体的规划及优化完善。&lt;/p&gt;<br>                            &lt;p style=&quot;margin-bottom: 1rem; text-indent: 2em;&quot;&gt;<br>                                在刚刚过去的几年时间里，往事皆以笔墨挥毫于时光素笺之上，数百天如一日，故事的书写从未间断过。&lt;/p&gt;<br>                            &lt;p style=&quot;margin-bottom: 1rem; text-indent: 2em; font-style: italic; color: #b8b8b8;&quot;&gt;<br>                                时光悠悠，日月如流，过往的蹉跎岁月总在不经意间在心间回眸。&lt;/p&gt;<br>                            &lt;p style=&quot;margin-bottom: 1rem; text-indent: 2em; font-weight: 500; color: #ffffff;&quot;&gt;<br>                                俯仰之间，轻舟已过万重山。&lt;/p&gt;<br>                            &lt;p style=&quot;margin-bottom: 1rem; text-indent: 2em; font-weight: 500; color: #ffffff;&quot;&gt;<br>                                蹉跎之处，往事皆成云烟散。&lt;/p&gt;<br>                            &lt;p style=&quot;margin-bottom: 1rem; text-indent: 2em;&quot;&gt;<br>                                这几年的时光过得太快了，好像过去这段岁月里的所有事情都发生在一瞬间。&lt;/p&gt;<br>                            &lt;p style=&quot;margin-bottom: 1rem; text-indent: 2em;&quot;&gt;<br>                                这几年的时光同样太久了，久到那些时日里仿佛囊括了自己的整个前半生。&lt;/p&gt;<br>                            &lt;p style=&quot;margin-bottom: 0; text-align: right; font-size: 0.95rem; color: #a0a0a0;&quot;&gt;——<br>                                八百余个昼夜，当时只道是地久天长，如今回望，不过浮光掠影间的一瞬。&lt;/p&gt;<br>                        &lt;/div&gt;<br>                    &lt;/div&gt;<br><br>                    &lt;div class=&quot;announcement-item mb-4 p-4&quot;<br>                         style=&quot;background: rgba(255,255,255,0.05); border-radius: 8px;&quot;&gt;<br>                        &lt;h2 style=&quot;color: #6cc70b; font-weight: 600; font-size: 1.5rem; margin-bottom: 1.2rem; letter-spacing: 0.5px;&quot;&gt;<br>                            &lt;i class=&quot;fas fa-book-open mr-2&quot;&gt;&lt;/i&gt;墨痕新注<br>                            &lt;small style=&quot;display: block; font-size: 0.6em; color: #b8b8b8;text-align: right;&quot;&gt;——<br>                                功能迭代和未完成的书写&lt;/small&gt;<br>                        &lt;/h2&gt;<br>                        &lt;div style=&quot;color: #e0e0e0; line-height: 1.8; font-size: 1.05rem; letter-spacing: 0.3px;&quot;&gt;<br>                            &lt;p style=&quot;margin-bottom: 1.2rem;&quot;&gt;<br>                                言简意赅，简明扼要，即刻值此记录下本站点今日以来的功能调整，更新日志以及后续的扩展规划。&lt;/p&gt;<br><br>                            &lt;ul style=&quot;padding-left: 1.8rem; margin-bottom: 1.5rem;&quot;&gt;<br>                                &lt;li style=&quot;margin-bottom: 0.8rem; position: relative; list-style-type: none;&quot;&gt;<br>                                    &lt;span style=&quot;position: absolute; left: -1.8rem; color: #6cc70b;&quot;&gt;◆&lt;/span&gt;<br>                                    新增博文&quot;溯源计划&quot;，旨在用先进的数字技术留住过去的旧时光，让家族的记忆在数字云端生长发芽，全站博文数量已达90+。<br>                                &lt;/li&gt;<br>                                &lt;li style=&quot;margin-bottom: 0.8rem; position: relative; list-style-type: none;&quot;&gt;<br>                                    &lt;span style=&quot;position: absolute; left: -1.8rem; color: #6cc70b;&quot;&gt;◆&lt;/span&gt;<br>                                    自去年夏天站点新增了“评论回复”功能后，至今时隔十余月，在芒种前夕本站久违地上线“围栏告示”功能，本公告栏会不定时更新，持续跟进记录最新站点功能调整日志，更多精彩内容请敬请期待。<br>                                &lt;/li&gt;<br>                                &lt;li style=&quot;margin-bottom: 0.8rem; position: relative; list-style-type: none;&quot;&gt;<br>                                    &lt;span style=&quot;position: absolute; left: -1.8rem; color: #6cc70b;&quot;&gt;◆&lt;/span&gt;<br>                                    最近几周时间里，考虑到图文流量费用收取问题，暂时关闭了七牛云对象存储私有空间访问权限，故博文内的图文无法正常预览，择日考虑开启访问权限。<br>                                &lt;/li&gt;<br>                                &lt;li style=&quot;margin-bottom: 0.8rem; position: relative; list-style-type: none;&quot;&gt;<br>                                    &lt;span style=&quot;position: absolute; left: -1.8rem; color: #6cc70b;&quot;&gt;◆&lt;/span&gt;<br>                                    后续计划实现壁纸下载功能，均为个人收集的共150+超高分辨率精美壁纸，提供在线预览以及下载功能。<br>                                &lt;/li&gt;<br>                                &lt;li style=&quot;margin-bottom: 0.8rem; position: relative; list-style-type: none;&quot;&gt;<br>                                    &lt;span style=&quot;position: absolute; left: -1.8rem; color: #6cc70b;&quot;&gt;◆&lt;/span&gt;<br>                                    规划完善文章内分页功能，并提供“最近更新”的文章列表，计划收录更新率较高的文章，譬如：阳台日记、叙事之外、岁月如歌、游戏人生等等，尽可能多的提升在线浏览和阅读体验。<br>                                &lt;/li&gt;<br>                                &lt;li style=&quot;margin-bottom: 0.8rem; position: relative; list-style-type: none;&quot;&gt;<br>                                    &lt;span style=&quot;position: absolute; left: -1.8rem; color: #6cc70b;&quot;&gt;◆&lt;/span&gt;<br>                                    持续优化完善友链页面，整理归档个人常用的高质量网站合集，无偿分享给有缘人。<br>                                &lt;/li&gt;<br>                            &lt;/ul&gt;<br><br>                            &lt;p style=&quot;margin-bottom: 0; text-align: right; font-size: 0.9rem; color: #8a8a8a;&quot;&gt;<br>                                此公告最后更新于：&lt;span style=&quot;color: #6cc70b;&quot;&gt;2025/05/28晚&lt;/span&gt;<br>                            &lt;/p&gt;<br>                        &lt;/div&gt;<br>                    &lt;/div&gt;<br>                &lt;/div&gt;<br>            &lt;/div&gt;<br><br>            &lt;!-- 公告页脚 --&gt;<br>            &lt;div class=&quot;modal-footer&quot;<br>                 style=&quot;border-top: 1px solid #ffffff;padding: 12px 20px;justify-content: space-between;&quot;&gt;<br>                &lt;small style=&quot;color: #ffffff;&quot;&gt;<br>                    &lt;i class=&quot;iconfont icon-pen&quot;&gt;&lt;/i&gt;<br>                    &lt;i class=&quot;fas fa-info-circle mr-1&quot;&gt;&lt;/i&gt;芒种前夕 · 旅途第813天<br>                    · &lt;%= new Date().toLocaleDateString() %&gt;<br>                &lt;/small&gt;<br>                &lt;button id=&quot;confirm-btn&quot; type=&quot;button&quot; class=&quot;btn btn-sm&quot; data-dismiss=&quot;modal&quot;<br>                        style=&quot;background: #a0a0a0;color: #ffffff;border-radius: 4px;padding: 5px 15px;border: none;&quot;&gt;<br>                    &lt;i class=&quot;fas fa-check mr-1&quot; style=&quot;color: #ffffff;font-size: medium&quot;&gt;心已阅&lt;/i&gt;<br>                &lt;/button&gt;<br>            &lt;/div&gt;<br>        &lt;/div&gt;<br>    &lt;/div&gt;<br>&lt;/div&gt;<br></code></pre></td></tr></table></figure>

<p>适配移动端，概览。</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br><span class="line">82</span><br><span class="line">83</span><br><span class="line">84</span><br><span class="line">85</span><br><span class="line">86</span><br><span class="line">87</span><br><span class="line">88</span><br><span class="line">89</span><br><span class="line">90</span><br><span class="line">91</span><br><span class="line">92</span><br><span class="line">93</span><br><span class="line">94</span><br><span class="line">95</span><br><span class="line">96</span><br><span class="line">97</span><br><span class="line">98</span><br><span class="line">99</span><br><span class="line">100</span><br><span class="line">101</span><br><span class="line">102</span><br><span class="line">103</span><br><span class="line">104</span><br><span class="line">105</span><br><span class="line">106</span><br><span class="line">107</span><br><span class="line">108</span><br><span class="line">109</span><br><span class="line">110</span><br><span class="line">111</span><br><span class="line">112</span><br><span class="line">113</span><br><span class="line">114</span><br><span class="line">115</span><br><span class="line">116</span><br><span class="line">117</span><br><span class="line">118</span><br><span class="line">119</span><br><span class="line">120</span><br><span class="line">121</span><br><span class="line">122</span><br><span class="line">123</span><br><span class="line">124</span><br><span class="line">125</span><br><span class="line">126</span><br><span class="line">127</span><br><span class="line">128</span><br><span class="line">129</span><br><span class="line">130</span><br><span class="line">131</span><br><span class="line">132</span><br><span class="line">133</span><br><span class="line">134</span><br><span class="line">135</span><br><span class="line">136</span><br><span class="line">137</span><br><span class="line">138</span><br><span class="line">139</span><br><span class="line">140</span><br><span class="line">141</span><br><span class="line">142</span><br><span class="line">143</span><br><span class="line">144</span><br><span class="line">145</span><br><span class="line">146</span><br><span class="line">147</span><br><span class="line">148</span><br><span class="line">149</span><br><span class="line">150</span><br><span class="line">151</span><br><span class="line">152</span><br><span class="line">153</span><br><span class="line">154</span><br><span class="line">155</span><br><span class="line">156</span><br><span class="line">157</span><br><span class="line">158</span><br><span class="line">159</span><br><span class="line">160</span><br><span class="line">161</span><br><span class="line">162</span><br><span class="line">163</span><br><span class="line">164</span><br><span class="line">165</span><br><span class="line">166</span><br><span class="line">167</span><br><span class="line">168</span><br><span class="line">169</span><br><span class="line">170</span><br><span class="line">171</span><br><span class="line">172</span><br><span class="line">173</span><br><span class="line">174</span><br><span class="line">175</span><br><span class="line">176</span><br><span class="line">177</span><br><span class="line">178</span><br><span class="line">179</span><br><span class="line">180</span><br><span class="line">181</span><br><span class="line">182</span><br><span class="line">183</span><br><span class="line">184</span><br><span class="line">185</span><br><span class="line">186</span><br><span class="line">187</span><br><span class="line">188</span><br><span class="line">189</span><br><span class="line">190</span><br><span class="line">191</span><br><span class="line">192</span><br><span class="line">193</span><br><span class="line">194</span><br><span class="line">195</span><br><span class="line">196</span><br><span class="line">197</span><br><span class="line">198</span><br><span class="line">199</span><br><span class="line">200</span><br><span class="line">201</span><br><span class="line">202</span><br><span class="line">203</span><br><span class="line">204</span><br><span class="line">205</span><br><span class="line">206</span><br><span class="line">207</span><br><span class="line">208</span><br><span class="line">209</span><br></pre></td><td class="code"><pre><code class="hljs ejs">&lt;div class=&quot;modal fade&quot; id=&quot;modalNotice&quot; tabindex=&quot;-1&quot; role=&quot;dialog&quot; aria-hidden=&quot;true&quot;<br>     style=&quot;font-family: &#x27;Ma Shan Zheng&#x27;, cursive; color: #ffffff;&quot;&gt;<br>    &lt;div class=&quot;modal-dialog modal-dialog-scrollable&quot; role=&quot;document&quot;<br>         style=&quot;font-family: &#x27;Ma Shan Zheng&#x27;, cursive;&quot;&gt;<br>        &lt;div class=&quot;modal-content&quot; style=&quot;border-radius: 6px;&quot;&gt;<br>            &lt;!-- 公告头部 - 响应式设计 --&gt;<br>            &lt;div class=&quot;modal-header text-center&quot; style=&quot;padding: 1rem 1.5rem;&quot;&gt;<br>                &lt;h4 class=&quot;modal-title w-100 font-weight-bold&quot;<br>                    style=&quot;font-family: &#x27;Microsoft YaHei&#x27;, sans-serif;letter-spacing: 1px;text-shadow: 1px 1px 2px rgba(0,0,0,0.2);color: #ffffff;<br>                           font-size: 1.5rem; /* 默认PC端大小 */<br>                           /* 移动端适配 */<br>                           @media (max-width: 768px) &#123;<br>                               font-size: 1.2rem;<br>                           &#125;&quot;&gt;<br>                    &lt;i class=&quot;fas fa-bullhorn mr-2&quot;&gt; &lt;%= __(&#x27;notice.title&#x27;) || &#x27;站点公告&#x27; %&gt;&lt;/i&gt;<br>                    &lt;small style=&quot;display: block; font-family: &#x27;STKaiti&#x27;, serif; font-size: 0.6em; color: #a0a0a0; margin-top: 3px;&quot;&gt;<br>                        旧梦轻拾 · 谨识<br>                    &lt;/small&gt;<br>                &lt;/h4&gt;<br>            &lt;/div&gt;<br><br>            &lt;!-- 公告内容区 - 响应式设计 --&gt;<br>            &lt;div class=&quot;modal-body&quot;<br>                 style=&quot;padding: 2rem; /* PC端 */<br>                        max-height: 70vh;<br>                        overflow-y: auto;<br>                        /* 移动端适配 */<br>                        @media (max-width: 768px) &#123;<br>                            padding: 1rem;<br>                            max-height: 60vh;<br>                        &#125;&quot;&gt;<br>                &lt;!-- 图片容器（响应式设计） --&gt;<br>                &lt;div class=&quot;announcement-hero&quot;<br>                     style=&quot;margin-bottom: 2rem; /* PC端 */<br>                            /* 移动端适配 */<br>                            @media (max-width: 768px) &#123;<br>                                margin-bottom: 1rem;<br>                            &#125;&quot;&gt;<br>                    &lt;img src=&quot;http://blog.memory-life.xyz/%E3%80%90%E5%93%B2%E9%A3%8E%E5%A3%81%E7%BA%B8%E3%80%91%E5%8A%A8%E6%BC%AB-%E5%A4%95%E9%98%B3%E9%93%81%E8%BD%A8.jpg&quot;<br>                         alt=&quot;时光溯洄题图&quot;<br>                         style=&quot;width: 100%;<br>                                max-height: 400px; /* PC端 */<br>                                object-fit: cover;<br>                                border-radius: 4px;<br>                                box-shadow: 0 2px 12px rgba(0,0,0,0.1);<br>                                /* 移动端适配 */<br>                                @media (max-width: 768px) &#123;<br>                                    max-height: 30vh;<br>                                &#125;&quot;<br>                         loading=&quot;lazy&quot;&gt;<br>                &lt;/div&gt;<br><br>                &lt;!-- 静态公告列表 - 响应式设计 --&gt;<br>                &lt;div class=&quot;announcement-list&quot;&gt;<br>                    &lt;div class=&quot;announcement-item&quot;<br>                         style=&quot;margin-bottom: 2rem; /* PC端 */<br>                                padding: 2rem;<br>                                background: rgba(255,255,255,0.05);<br>                                border-radius: 8px;<br>                                /* 移动端适配 */<br>                                @media (max-width: 768px) &#123;<br>                                    margin-bottom: 1rem;<br>                                    padding: 1rem;<br>                                &#125;&quot;&gt;<br>                        &lt;h2 style=&quot;color: #d38532;<br>                                  font-weight: 600;<br>                                  font-size: 1.5rem; /* PC端 */<br>                                  margin-bottom: 1.2rem;<br>                                  letter-spacing: 0.5px;<br>                                  /* 移动端适配 */<br>                                  @media (max-width: 768px) &#123;<br>                                      font-size: 1.2rem;<br>                                      margin-bottom: 1rem;<br>                                  &#125;&quot;&gt;<br>                            &lt;i class=&quot;fas fa-calendar-check mr-2&quot;&gt;&lt;/i&gt;时光溯洄<br>                            &lt;small style=&quot;display: block; font-size: 0.6em; color: #b8b8b8;text-align: right;&quot;&gt;——<br>                                关于本站那些被数字化的晨昏&lt;/small&gt;<br>                        &lt;/h2&gt;<br>                        &lt;div style=&quot;color: #e0e0e0;<br>                                  line-height: 1.8; /* PC端 */<br>                                  font-size: 1.05rem;<br>                                  letter-spacing: 0.3px;<br>                                  /* 移动端适配 */<br>                                  @media (max-width: 768px) &#123;<br>                                      line-height: 1.6;<br>                                      font-size: 0.95rem;<br>                                  &#125;&quot;&gt;<br>                            &lt;!-- 内容保持不变 --&gt;<br>                            &lt;p style=&quot;margin-bottom: 1rem; text-indent: 2em;&quot;&gt;你们好！&lt;/p&gt;<br>                            &lt;!-- 其余段落内容... --&gt;<br>                        &lt;/div&gt;<br>                    &lt;/div&gt;<br><br>                    &lt;!-- 第二个公告项 - 响应式设计 --&gt;<br>                    &lt;div class=&quot;announcement-item&quot;<br>                         style=&quot;margin-bottom: 2rem; /* PC端 */<br>                                padding: 2rem;<br>                                background: rgba(255,255,255,0.05);<br>                                border-radius: 8px;<br>                                /* 移动端适配 */<br>                                @media (max-width: 768px) &#123;<br>                                    margin-bottom: 1rem;<br>                                    padding: 1rem;<br>                                &#125;&quot;&gt;<br>                        &lt;h2 style=&quot;color: #6cc70b;<br>                                  font-weight: 600;<br>                                  font-size: 1.5rem; /* PC端 */<br>                                  margin-bottom: 1.2rem;<br>                                  letter-spacing: 0.5px;<br>                                  /* 移动端适配 */<br>                                  @media (max-width: 768px) &#123;<br>                                      font-size: 1.2rem;<br>                                      margin-bottom: 1rem;<br>                                  &#125;&quot;&gt;<br>                            &lt;i class=&quot;fas fa-book-open mr-2&quot;&gt;&lt;/i&gt;墨痕新注<br>                            &lt;small style=&quot;display: block; font-size: 0.6em; color: #b8b8b8;text-align: right;&quot;&gt;——<br>                                功能迭代和未完成的书写&lt;/small&gt;<br>                        &lt;/h2&gt;<br>                        &lt;div style=&quot;color: #e0e0e0;<br>                                  line-height: 1.8; /* PC端 */<br>                                  font-size: 1.05rem;<br>                                  letter-spacing: 0.3px;<br>                                  /* 移动端适配 */<br>                                  @media (max-width: 768px) &#123;<br>                                      line-height: 1.6;<br>                                      font-size: 0.95rem;<br>                                  &#125;&quot;&gt;<br>                            &lt;!-- 列表内容 - 响应式设计 --&gt;<br>                            &lt;ul style=&quot;padding-left: 1.8rem; /* PC端 */<br>                                      margin-bottom: 1.5rem;<br>                                      /* 移动端适配 */<br>                                      @media (max-width: 768px) &#123;<br>                                          padding-left: 1.5rem;<br>                                          margin-bottom: 1.2rem;<br>                                      &#125;&quot;&gt;<br>                                &lt;li style=&quot;margin-bottom: 0.8rem; /* PC端 */<br>                                         position: relative;<br>                                         list-style-type: none;<br>                                         /* 移动端适配 */<br>                                         @media (max-width: 768px) &#123;<br>                                             margin-bottom: 0.6rem;<br>                                         &#125;&quot;&gt;<br>                                    &lt;span style=&quot;position: absolute;<br>                                               left: -1.8rem; /* PC端 */<br>                                               color: #6cc70b;<br>                                               /* 移动端适配 */<br>                                               @media (max-width: 768px) &#123;<br>                                                   left: -1.5rem;<br>                                               &#125;&quot;&gt;◆&lt;/span&gt;<br>                                    新增博文&quot;溯源计划&quot;，旨在用先进的数字技术留住过去的旧时光...<br>                                &lt;/li&gt;<br>                                &lt;!-- 其余列表项... --&gt;<br>                            &lt;/ul&gt;<br>                        &lt;/div&gt;<br>                    &lt;/div&gt;<br>                &lt;/div&gt;<br>            &lt;/div&gt;<br><br>            &lt;!-- 公告页脚 - 响应式设计 --&gt;<br>            &lt;div class=&quot;modal-footer&quot;<br>                 style=&quot;border-top: 1px solid rgba(255,255,255,0.2);<br>                        padding: 1rem 1.5rem; /* PC端 */<br>                        justify-content: space-between;<br>                        /* 移动端适配 */<br>                        @media (max-width: 768px) &#123;<br>                            padding: 0.8rem;<br>                        &#125;&quot;&gt;<br>                &lt;small style=&quot;color: #ffffff;<br>                            font-size: 0.9rem; /* PC端 */<br>                            /* 移动端适配 */<br>                            @media (max-width: 768px) &#123;<br>                                font-size: 0.8rem;<br>                            &#125;&quot;&gt;<br>                    &lt;i class=&quot;iconfont icon-pen&quot;&gt;&lt;/i&gt;<br>                    &lt;i class=&quot;fas fa-info-circle mr-1&quot;&gt;&lt;/i&gt;芒种前夕 · 旅途第813天<br>                    · &lt;%= new Date().toLocaleDateString() %&gt;<br>                &lt;/small&gt;<br>                &lt;button id=&quot;confirm-btn&quot; type=&quot;button&quot; class=&quot;btn btn-sm&quot; data-dismiss=&quot;modal&quot;<br>                        style=&quot;background: #a0a0a0;<br>                               color: #ffffff;<br>                               border-radius: 4px;<br>                               padding: 0.5rem 1.2rem; /* PC端 */<br>                               border: none;<br>                               font-size: 0.9rem;<br>                               /* 移动端适配 */<br>                               @media (max-width: 768px) &#123;<br>                                   padding: 0.3rem 0.8rem;<br>                                   font-size: 0.85rem;<br>                               &#125;&quot;&gt;<br>                    &lt;i class=&quot;fas fa-check mr-1&quot; style=&quot;color: #ffffff;&quot;&gt;心已阅&lt;/i&gt;<br>                &lt;/button&gt;<br>            &lt;/div&gt;<br>        &lt;/div&gt;<br>    &lt;/div&gt;<br>&lt;/div&gt;<br><br>&lt;style&gt;<br>    /* 响应式模态框宽度 */<br>    @media (min-width: 992px) &#123;<br>        #modalNotice .modal-dialog &#123;<br>            max-width: 800px;<br>        &#125;<br>    &#125;<br>    @media (max-width: 991px) &#123;<br>        #modalNotice .modal-dialog &#123;<br>            margin: 0.5rem auto;<br>        &#125;<br>    &#125;<br>&lt;/style&gt;<br></code></pre></td></tr></table></figure>

<h1 id="全局字体"><a href="#全局字体" class="headerlink" title="全局字体"></a>全局字体</h1><blockquote>
<p>2025 年 5 月 28 日</p>
</blockquote>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-comment"># 主题字体配置</span><br><span class="hljs-comment"># Font</span><br><span class="hljs-attr">font:</span><br>  <span class="hljs-attr">font_size:</span> <span class="hljs-string">16px</span><br>  <span class="hljs-attr">font_family:</span><br>  <span class="hljs-attr">letter_spacing:</span> <span class="hljs-number">0.</span><span class="hljs-string">02em</span><br>  <span class="hljs-attr">code_font_size:</span> <span class="hljs-number">85</span><span class="hljs-string">%</span><br></code></pre></td></tr></table></figure>

<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-comment"># ===== 主题字体配置 =====</span><br><span class="hljs-attr">font:</span><br>  <span class="hljs-comment"># 基础字号（黄金比例衍生值）</span><br>  <span class="hljs-attr">font_size:</span> <span class="hljs-number">16.</span><span class="hljs-string">5px</span> <span class="hljs-comment"># 1.618×基准单位</span><br><br>  <span class="hljs-comment"># 全局字体栈（中英混排优化）</span><br>  <span class="hljs-attr">font_family:</span><br>    <span class="hljs-bullet">-</span> <span class="hljs-string">&quot;HarmonyOS Sans SC&quot;</span> <span class="hljs-comment"># 华为鸿蒙字体（现代简约）</span><br>    <span class="hljs-bullet">-</span> <span class="hljs-string">&quot;Noto Sans SC&quot;</span> <span class="hljs-comment"># 思源黑体（泛用性强）</span><br>    <span class="hljs-bullet">-</span> <span class="hljs-string">&quot;PingFang SC&quot;</span> <span class="hljs-comment"># 苹方（macOS优雅显示）</span><br>    <span class="hljs-bullet">-</span> <span class="hljs-string">&quot;Microsoft YaHei&quot;</span> <span class="hljs-comment"># 微软雅黑（Windows兼容）</span><br>    <span class="hljs-bullet">-</span> <span class="hljs-string">&quot;Helvetica Neue&quot;</span> <span class="hljs-comment"># 西文字体优先级</span><br>    <span class="hljs-bullet">-</span> <span class="hljs-string">&quot;Arial&quot;</span><br>    <span class="hljs-bullet">-</span> <span class="hljs-string">&quot;sans-serif&quot;</span> <span class="hljs-comment"># 最终回退</span><br><br>  <span class="hljs-comment"># 字间距（视觉呼吸感）</span><br>  <span class="hljs-attr">letter_spacing:</span> <span class="hljs-number">0.</span><span class="hljs-string">03em</span> <span class="hljs-comment"># 较默认稍宽松</span><br><br>  <span class="hljs-comment"># 代码区块字体配置</span><br>  <span class="hljs-attr">code:</span><br>    <span class="hljs-attr">font_size:</span> <span class="hljs-number">87</span><span class="hljs-string">%</span> <span class="hljs-comment"># 稍小于正文字号</span><br>    <span class="hljs-attr">font_family:</span><br>      <span class="hljs-bullet">-</span> <span class="hljs-string">&quot;JetBrains Mono&quot;</span> <span class="hljs-comment"># 开发首选等宽字体</span><br>      <span class="hljs-bullet">-</span> <span class="hljs-string">&quot;Fira Code&quot;</span> <span class="hljs-comment"># 连字符优化</span><br>      <span class="hljs-bullet">-</span> <span class="hljs-string">&quot;Consolas&quot;</span><br>      <span class="hljs-bullet">-</span> <span class="hljs-string">&quot;monospace&quot;</span><br>    <span class="hljs-attr">line_height:</span> <span class="hljs-number">1.6</span> <span class="hljs-comment"># 代码行高增强可读性</span><br><br>  <span class="hljs-comment"># 标题特殊配置</span><br>  <span class="hljs-attr">headings:</span><br>    <span class="hljs-attr">font_scale:</span> <span class="hljs-number">1.2</span> <span class="hljs-comment"># 标题递增系数</span><br>    <span class="hljs-attr">letter_spacing:</span> <span class="hljs-number">-0.</span><span class="hljs-string">015em</span> <span class="hljs-comment"># 标题稍紧凑</span><br>    <span class="hljs-attr">font_weight:</span> <span class="hljs-number">450</span> <span class="hljs-comment"># 中等粗细（非bold的现代选择）</span><br><br>  <span class="hljs-comment"># 日夜间模式字体微调</span><br>  <span class="hljs-attr">dark_mode:</span><br>    <span class="hljs-attr">font_weight:</span> <span class="hljs-number">350</span> <span class="hljs-comment"># 夜间模式稍细</span><br>    <span class="hljs-attr">contrast_ratio:</span> <span class="hljs-number">1.8</span> <span class="hljs-comment"># 明暗对比优化</span><br></code></pre></td></tr></table></figure>

<blockquote>
<p>2025 年 5 月 31 日</p>
</blockquote>
<p>这样的字体看着挺不赖的，这么久了换一种风格也好。</p>
<figure class="highlight autohotkey"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs autohotkey"><span class="hljs-built_in">KaiTi,</span><span class="hljs-string">&quot;Microsoft YaHei&quot;</span>,Georgia, sans, serif<br></code></pre></td></tr></table></figure>

<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-comment"># 主题字体配置</span><br><span class="hljs-comment"># Font</span><br><span class="hljs-attr">font:</span><br>  <span class="hljs-attr">font_size:</span> <span class="hljs-string">16px</span><br>  <span class="hljs-attr">font_family:</span> <span class="hljs-string">KaiTi,&quot;Microsoft</span> <span class="hljs-string">YaHei&quot;,Georgia,</span> <span class="hljs-string">sans,</span> <span class="hljs-string">serif</span><br>  <span class="hljs-attr">letter_spacing:</span> <span class="hljs-number">0.</span><span class="hljs-string">02em</span><br>  <span class="hljs-attr">code_font_size:</span> <span class="hljs-number">85</span><span class="hljs-string">%</span><br></code></pre></td></tr></table></figure>

<p><img src="http://blog.memory-life.xyz/image-20250531140614212.png" alt="image-20250531140614212"></p>
<p><a target="_blank" rel="noopener" href="https://highlightjs.org/not-a-cdn">We’re not a CDN - highlight.js (highlightjs.org)</a></p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-comment"># 代码块的增强配置</span><br><span class="hljs-comment"># Enhancements to code blocks</span><br><span class="hljs-attr">code:</span><br>  <span class="hljs-comment"># 是否开启复制代码的按钮</span><br>  <span class="hljs-comment"># Enable copy code button</span><br>  <span class="hljs-attr">copy_btn:</span> <span class="hljs-literal">true</span><br><br>  <span class="hljs-comment"># 代码语言</span><br>  <span class="hljs-comment"># Code language</span><br>  <span class="hljs-attr">language:</span><br>    <span class="hljs-attr">enable:</span> <span class="hljs-literal">true</span><br>    <span class="hljs-attr">default:</span> <span class="hljs-string">&quot;TEXT&quot;</span><br><br>  <span class="hljs-comment"># 代码高亮</span><br>  <span class="hljs-comment"># Code highlight</span><br>  <span class="hljs-attr">highlight:</span><br>    <span class="hljs-attr">enable:</span> <span class="hljs-literal">true</span><br><br>    <span class="hljs-comment"># 代码块是否显示行号</span><br>    <span class="hljs-comment"># If true, the code block display line numbers</span><br>    <span class="hljs-attr">line_number:</span> <span class="hljs-literal">true</span><br><br>    <span class="hljs-comment"># 实现高亮的库，对应下面的设置</span><br>    <span class="hljs-comment"># Highlight library</span><br>    <span class="hljs-comment"># Options: highlightjs | prismjs</span><br>    <span class="hljs-attr">lib:</span> <span class="hljs-string">&quot;highlightjs&quot;</span><br><br>    <span class="hljs-attr">highlightjs:</span><br>      <span class="hljs-comment"># 在链接中挑选 style 填入</span><br>      <span class="hljs-comment"># Select a style in the link</span><br>      <span class="hljs-comment"># See: https://highlightjs.org/static/demo/</span><br>      <span class="hljs-attr">style:</span> <span class="hljs-string">&quot;atom-one-light&quot;</span><br>      <span class="hljs-attr">style_dark:</span> <span class="hljs-string">&quot;atom-one-dark&quot;</span><br></code></pre></td></tr></table></figure>

<p>代码高亮调整完毕，这下看起来舒服多了。</p>
<h1 id="分页阅读"><a href="#分页阅读" class="headerlink" title="分页阅读"></a>分页阅读</h1><blockquote>
<p>2025 年 5 月 29 日</p>
</blockquote>
<h1 id="音乐餐厅"><a href="#音乐餐厅" class="headerlink" title="音乐餐厅"></a>音乐餐厅</h1><blockquote>
<p>2025 年 5 月 29 日</p>
</blockquote>
<p>安装插件。</p>
<figure class="highlight ada"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs ada">npm install hexo-tag-aplayer hexo-theme-cafe <span class="hljs-comment">--save</span><br></code></pre></td></tr></table></figure>

<p><a target="_blank" rel="noopener" href="https://docs.nexmoe.com/v3.2/hexo/aplayer">插入音乐 | 🔥 一个比较特别的 Hexo 主题 (nexmoe.com)</a></p>
<p><img src="http://blog.memory-life.xyz/image-20250529211247556.png" alt="image-20250529211247556"></p>
<p>插入音乐<a target="_blank" rel="noopener" href="https://docs.nexmoe.com/v3.2/hexo/aplayer.html#%E6%8F%92%E5%85%A5%E9%9F%B3%E4%B9%90"></a></p>
<p>本教程使用 hexo-tag-aplayer 插件来达到在 Hexo 文章中插入音乐的效果</p>
<p>在你的 Hexo 程序根目录（与_config.yml 同目录）下执行：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">npm install --save hexo-tag-aplayer<br></code></pre></td></tr></table></figure>

<p>引入 MetingJS 后，播放器将支持对于 QQ 音乐、网易云音乐、虾米、酷狗、百度等平台的音乐播放。</p>
<p>在 Hexo 配置文件 <code>_config.yml</code> 中设置：</p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-attr">aplayer:</span><br>  <span class="hljs-attr">meting:</span> <span class="hljs-literal">true</span> <span class="hljs-comment"># 启用 MetingJS 支持</span><br>  <span class="hljs-attr">asset_inject:</span> <span class="hljs-literal">false</span> <span class="hljs-comment"># Fluid 主题需关闭自动注入，避免冲突</span><br></code></pre></td></tr></table></figure>

<p><a target="_blank" rel="noopener" href="https://juejin.cn/post/7017449170948587550">Hexo 博客增加歌单播放想到要为自己的 Hexo 博客添加播放音乐的功能，首先就是去搜索查询一些大佬们是怎么实现的，在大佬们 - 掘金 (juejin.cn)</a></p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/qq_41380292/article/details/121886741">hexo 博客 fluid 主题添加 aplayer 组件_hexo aplayer-CSDN 博客</a></p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/hushhw/article/details/88092728">Hexo 主题插入音乐之 aplayer 音乐播放器_hexo-tag-aplayer-CSDN 博客</a></p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/gitblog_00526/article/details/141120360">Hexo-Tag-APlayer 项目教程-CSDN 博客</a></p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-attr">aplayer:</span><br>  <span class="hljs-attr">meting:</span> <span class="hljs-literal">true</span><br>  <span class="hljs-attr">asset_inject:</span> <span class="hljs-literal">false</span> <span class="hljs-comment"># Fluid主题必须关闭自动注入！</span><br>  <span class="hljs-attr">cdn:</span> <span class="hljs-string">https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.js</span><br>  <span class="hljs-attr">style_cdn:</span> <span class="hljs-string">https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.css</span><br>  <span class="hljs-attr">meting_cdn:</span> <span class="hljs-string">https://cdn.jsdelivr.net/npm/meting/dist/Meting.min.js</span><br></code></pre></td></tr></table></figure>

<p><a target="_blank" rel="noopener" href="https://gitcode.com/gh_mirrors/he/hexo-tag-aplayer/?utm_source=artical_gitcode&index=top&type=card&webUrl=#%E4%BD%BF%E7%94%A8">项目首页 - hexo-tag-aplayer:Embed aplayer in Hexo posts/pages - GitCode</a></p>
<p><a target="_blank" rel="noopener" href="https://www.bilibili.com/video/BV1Tk4y1V7aV/?spm_id_from=333.337.search-card.all.click&vd_source=4314e5bd742ea904c9675af8a6b4b07e">Hexo 添加全局吸底 Aplayer 音乐播放器教程_哔哩哔哩_bilibili</a></p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-attr">aplayer:</span><br>  <span class="hljs-attr">meting:</span> <span class="hljs-literal">true</span><br>  <span class="hljs-attr">asset_inject:</span> <span class="hljs-literal">false</span> <span class="hljs-comment"># 关闭自动注入，避免与Fluid内置资源冲突</span><br>  <span class="hljs-attr">cdn:</span> <span class="hljs-comment"># 手动指定CDN（确保资源加载）</span><br>    <span class="hljs-attr">js:</span> <span class="hljs-string">https://cdn.jsdelivr.net/npm/aplayer@1.10.1/dist/APlayer.min.js</span><br>    <span class="hljs-attr">css:</span> <span class="hljs-string">https://cdn.jsdelivr.net/npm/aplayer@1.10.1/dist/APlayer.min.css</span><br></code></pre></td></tr></table></figure>

<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-comment"># 关闭主题自带的音乐插件（防止冲突）</span><br><span class="hljs-attr">plugins:</span><br>  <span class="hljs-attr">aplayer:</span> <span class="hljs-literal">false</span><br><span class="hljs-comment"># 启用自定义脚本注入（关键！）</span><br><span class="hljs-attr">custom_js:</span> <span class="hljs-string">/js/activate-aplayer.js</span><br></code></pre></td></tr></table></figure>

<p>废了，没用。</p>
<blockquote>
<p>2025 年 5 月 30 日</p>
</blockquote>
<p><a target="_blank" rel="noopener" href="https://alec-97.github.io/posts/3564283204/">往事随风 (alec-97.github.io)</a></p>
<figure class="highlight xml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br></pre></td><td class="code"><pre><code class="hljs xml"><span class="hljs-tag">&lt;<span class="hljs-name">div</span></span><br><span class="hljs-tag">        <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;aplayer&quot;</span></span><br><span class="hljs-tag">        <span class="hljs-attr">data-id</span>=<span class="hljs-string">&quot;754708245&quot;</span></span><br><span class="hljs-tag">        <span class="hljs-attr">data-server</span>=<span class="hljs-string">&quot;netease&quot;</span></span><br><span class="hljs-tag">        <span class="hljs-attr">data-type</span>=<span class="hljs-string">&quot;playlist&quot;</span></span><br><span class="hljs-tag">        <span class="hljs-attr">data-fixed</span>=<span class="hljs-string">&quot;true&quot;</span></span><br><span class="hljs-tag">        <span class="hljs-attr">data-listfolded</span>=<span class="hljs-string">&quot;true&quot;</span></span><br><span class="hljs-tag">        <span class="hljs-attr">data-autoplay</span>=<span class="hljs-string">&quot;false&quot;</span></span><br><span class="hljs-tag">        <span class="hljs-attr">data-order</span>=<span class="hljs-string">&quot;list&quot;</span></span><br><span class="hljs-tag">        <span class="hljs-attr">data-volume</span>=<span class="hljs-string">&quot;0.5&quot;</span></span><br><span class="hljs-tag">        <span class="hljs-attr">data-theme</span>=<span class="hljs-string">&quot;#1da496&quot;</span></span><br><span class="hljs-tag">        <span class="hljs-attr">data-preload</span>=<span class="hljs-string">&quot;auto&quot;</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span><br><br><span class="hljs-comment">&lt;!-- 优化样式 --- 觉得默认的不太好看 --&gt;</span><br><span class="hljs-comment">&lt;!-- 发现歌词出现在了播放器外，可能设计是这样的，但是我想把它放到播放器内部进度条位置 --&gt;</span><br><span class="hljs-tag">&lt;<span class="hljs-name">style</span>&gt;</span><span class="language-css"></span><br><span class="language-css">  <span class="hljs-selector-class">.aplayer</span><span class="hljs-selector-class">.aplayer-fixed</span> <span class="hljs-selector-class">.aplayer-lrc</span>,</span><br><span class="language-css">  <span class="hljs-selector-class">.aplayer</span><span class="hljs-selector-class">.aplayer-fixed</span> <span class="hljs-selector-class">.aplayer-body</span> &#123;</span><br><span class="language-css">    <span class="hljs-attribute">position</span>: absolute <span class="hljs-meta">!important</span>;</span><br><span class="language-css">    <span class="hljs-attribute">z-index</span>: <span class="hljs-number">999</span> <span class="hljs-meta">!important</span>;</span><br><span class="language-css">  &#125;</span><br><span class="language-css"></span><span class="hljs-tag">&lt;/<span class="hljs-name">style</span>&gt;</span><br></code></pre></td></tr></table></figure>

<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-comment"># 主题字体配置</span><br><span class="hljs-comment"># Font</span><br><span class="hljs-attr">font:</span><br>  <span class="hljs-attr">font_size:</span> <span class="hljs-string">16px</span><br>  <span class="hljs-attr">font_family:</span><br>  <span class="hljs-attr">letter_spacing:</span> <span class="hljs-number">0.</span><span class="hljs-string">02em</span><br>  <span class="hljs-attr">code_font_size:</span> <span class="hljs-number">85</span><span class="hljs-string">%</span><br></code></pre></td></tr></table></figure>

<p>在 fluid 的主题配置文件中，提供了自定义 html 的位置，因此直接在主题配置文件中添加 html 代码</p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-attr">custom_html:</span> <span class="hljs-string">&#x27;</span><br><span class="hljs-string"> &lt;!--音乐--&gt;</span><br><span class="hljs-string">  &lt;link rel=&quot;stylesheet&quot; href=&quot;https://cdn.jsdelivr.net/npm/aplayer@1.10.1/dist/APlayer.min.css&quot;&gt;</span><br><span class="hljs-string">  &lt;script src=&quot;https://cdn.jsdelivr.net/npm/aplayer@1.10.1/dist/APlayer.min.js&quot;&gt;&lt;/script&gt;</span><br><span class="hljs-string">  &lt;script src=&quot;https://cdn.jsdelivr.net/npm/meting@1.2/dist/Meting.min.js&quot;&gt;&lt;/script&gt;</span><br><span class="hljs-string">  &lt;div id=&quot;player&quot; class=&quot;aplayer aplayer-withlist aplayer-fixed&quot; data-id=&quot;3025663508&quot; data-server=&quot;netease&quot; data-type=&quot;playlist&quot; data-order=&quot;random&quot; data-fixed=&quot;true&quot; data-listfolded=&quot;true&quot; data-theme=&quot;#2D8CF0&quot;&gt;&lt;/div&gt;</span><br><span class="hljs-string">&#x27;</span><br></code></pre></td></tr></table></figure>

<p>在主题配置文件下添加这么个配置，主页直接插入了音乐播放器，就是样式有点糟糕，这不是我想要的。</p>
<p><img src="http://blog.memory-life.xyz/image-20250530094338806.png" alt="image-20250530094338806"></p>
<p>或者选择用配置分别引入 js 和 css 依赖，实现的效果同上是一样的。</p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-attr">custom_js:</span><br>  <span class="hljs-bullet">-</span> <span class="hljs-string">//cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.js</span> <span class="hljs-comment">#/APlayer#/APlayer依赖</span><br>  <span class="hljs-bullet">-</span> <span class="hljs-string">//cdn.jsdelivr.net/gh/metowolf/MetingJS@1.2/dist/Meting.min.js</span> <span class="hljs-comment">#/APlayer依赖</span><br><br><span class="hljs-comment"># 指定自定义 .css 文件路径，用法和 custom_js 相同</span><br><span class="hljs-comment"># The usage is the same as custom_js</span><br><span class="hljs-attr">custom_css:</span><br>  <span class="hljs-bullet">-</span> <span class="hljs-string">//cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.css</span> <span class="hljs-comment">#/APlayer依赖</span><br></code></pre></td></tr></table></figure>

<p><img src="http://blog.memory-life.xyz/image-20250530100633515.png" alt="image-20250530100633515"></p>
<figure class="highlight awk"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs awk">https:<span class="hljs-regexp">//</span>deng-<span class="hljs-number">2022</span>.atomgit.net<span class="hljs-regexp">/blog/</span>assets<span class="hljs-regexp">/js/</span>APlayer.min.js<br></code></pre></td></tr></table></figure>

<figure class="highlight dts"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs dts"><span class="hljs-symbol">url:</span> https:<span class="hljs-comment">//test.atomgit.net/blog</span><br><span class="hljs-symbol">root:</span> /blog<br></code></pre></td></tr></table></figure>

<figure class="highlight gcode"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><code class="hljs gcode">&lt;<span class="hljs-meta">%</span> <span class="hljs-keyword">if</span> <span class="hljs-comment">(theme.custom_js)</span> &#123; <span class="hljs-meta">%</span>&gt;<br>  &lt;<span class="hljs-meta">%</span>- js<span class="hljs-comment">(theme.custom_js)</span> <span class="hljs-meta">%</span>&gt;<br>&lt;<span class="hljs-meta">%</span> &#125; <span class="hljs-meta">%</span>&gt;<br></code></pre></td></tr></table></figure>

<figure class="highlight gcode"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><code class="hljs gcode">&lt;<span class="hljs-meta">%</span> <span class="hljs-keyword">if</span> <span class="hljs-comment">(theme.custom_js)</span> &#123; <span class="hljs-meta">%</span>&gt;<br>  &lt;<span class="hljs-meta">%</span> theme.custom_js.forEach<span class="hljs-comment">(function(url)</span> &#123; <span class="hljs-meta">%</span>&gt;<br>    &lt;script src=<span class="hljs-string">&quot;&lt;%= url.startsWith(&#x27;/&#x27;) ? &#x27;/blog&#x27; + url : &#x27;/blog/assets/&#x27; + url %&gt;&quot;</span>&gt;&lt;/script&gt;<br>  &lt;<span class="hljs-meta">%</span> &#125;); <span class="hljs-meta">%</span>&gt;<br>&lt;<span class="hljs-meta">%</span> &#125; <span class="hljs-meta">%</span>&gt;<br></code></pre></td></tr></table></figure>

<p><img src="http://blog.memory-life.xyz/image-20250530114947096.png" alt="image-20250530114947096"></p>
<figure class="highlight javascript"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><code class="hljs javascript"><span class="hljs-variable language_">console</span>.<span class="hljs-title function_">log</span>(<span class="hljs-variable language_">window</span>.<span class="hljs-property">APlayer</span>, <span class="hljs-variable language_">window</span>.<span class="hljs-property">Meting</span>);<br><span class="hljs-title class_">VM11822</span>:<span class="hljs-number">1</span> ƒ <span class="hljs-title function_">e</span>(<span class="hljs-params">t</span>)&#123;<span class="hljs-keyword">if</span>(<span class="hljs-keyword">function</span>(<span class="hljs-params">e,t</span>)&#123;<span class="hljs-keyword">if</span>(!(e <span class="hljs-keyword">instanceof</span> t))<span class="hljs-keyword">throw</span> <span class="hljs-keyword">new</span> <span class="hljs-title class_">TypeError</span>(<span class="hljs-string">&quot;Cannot call a class as a function&quot;</span>)&#125;(<span class="hljs-variable language_">this</span>,e),<span class="hljs-variable language_">this</span>.<span class="hljs-property">options</span>=(<span class="hljs-number">0</span>,s.<span class="hljs-property">default</span>)(t),<span class="hljs-variable language_">this</span>.<span class="hljs-property">container</span>=<span class="hljs-variable language_">this</span>.<span class="hljs-property">options</span>.<span class="hljs-property">container</span>,<span class="hljs-variable language_">this</span>.<span class="hljs-property">paused</span>=!<span class="hljs-number">0</span>,<span class="hljs-variable language_">this</span>.<span class="hljs-property">pl</span>… <span class="hljs-literal">undefined</span><br><span class="hljs-literal">undefined</span><br></code></pre></td></tr></table></figure>

<p>一套流程总算解决了加载本地资源报错的问题，目前仅加载 cdn 资源路径。</p>
<p>第一步：<strong>彻底禁用主题的默认加载</strong></p>
<p>在 <code>_config.fluid.yml</code> 中添加：</p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-attr">aplayer:</span><br>  <span class="hljs-attr">enable:</span> <span class="hljs-literal">false</span> <span class="hljs-comment"># 完全关闭主题内置的播放器逻辑</span><br>  <span class="hljs-attr">asset_inject:</span> <span class="hljs-literal">false</span> <span class="hljs-comment"># 禁止自动注入资源</span><br><br><span class="hljs-comment"># 强制使用你的CDN配置</span><br><span class="hljs-attr">custom_js:</span><br>  <span class="hljs-bullet">-</span> <span class="hljs-string">https://cdn.jsdelivr.net/npm/aplayer@1.10.1/dist/APlayer.min.js</span><br>  <span class="hljs-bullet">-</span> <span class="hljs-string">https://cdn.jsdelivr.net/npm/meting@2/dist/Meting.min.js</span><br></code></pre></td></tr></table></figure>

<p>第二步：<strong>清理冗余请求</strong></p>
<ol>
<li><p>删除以下文件（如果存在）：</p>
<figure class="highlight gradle"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs gradle"><span class="hljs-keyword">source</span><span class="hljs-regexp">/assets/</span>js/APlayer.min.js<br>themes<span class="hljs-regexp">/fluid/</span><span class="hljs-keyword">source</span><span class="hljs-regexp">/assets/</span>js/APlayer.min.js<br></code></pre></td></tr></table></figure></li>
<li><p>清除浏览器缓存后测试：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">hexo clean &amp;&amp; hexo g &amp;&amp; hexo s<br></code></pre></td></tr></table></figure></li>
</ol>
<p>第三步：<strong>验证全局变量</strong></p>
<p>在浏览器控制台输入：</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs js"><span class="hljs-comment">// 应该看到函数定义，而非 undefined</span><br><span class="hljs-variable language_">console</span>.<span class="hljs-title function_">log</span>(<span class="hljs-string">&quot;APlayer:&quot;</span>, <span class="hljs-variable language_">window</span>.<span class="hljs-property">APlayer</span>, <span class="hljs-string">&quot;Meting:&quot;</span>, <span class="hljs-variable language_">window</span>.<span class="hljs-property">Meting</span>);<br></code></pre></td></tr></table></figure>

<p>结果是同样的，现在需要解决 Meting.js 为何渲染失败。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">npm uninstall hexo-tag-aplayer<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">npm install aplayer@1.10.1 meting@3 --save<br></code></pre></td></tr></table></figure>

<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><code class="hljs js">&lt;script&gt;<br>  <span class="hljs-keyword">if</span> (<span class="hljs-variable language_">window</span>.<span class="hljs-property">APlayer</span> &amp;&amp; !<span class="hljs-variable language_">window</span>.<span class="hljs-property">Meting</span>) &#123;<br>    <span class="hljs-variable language_">console</span>.<span class="hljs-title function_">error</span>(<span class="hljs-string">&#x27;MetingJS 未加载！正在重试...&#x27;</span>);<br>    <span class="hljs-variable language_">document</span>.<span class="hljs-title function_">write</span>(<span class="hljs-string">&#x27;&lt;script src=&quot;https://cdn.jsdelivr.net/npm/meting@2/dist/Meting.min.js&quot;&gt;&lt;\/script&gt;&#x27;</span>);<br>  &#125;<br>&lt;/script&gt;<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">hexo clean &amp;&amp; hexo g &amp;&amp; hexo s<br></code></pre></td></tr></table></figure>

<p><a target="_blank" rel="noopener" href="https://juejin.cn/post/7481143717246320666">Markdown 标签语法 Markdown 内嵌 HTML 标签 对于 Markdown 涵盖范围之外的标签，都可以直接 - 掘金 (juejin.cn)</a></p>
<p><a target="_blank" rel="noopener" href="https://hexo.io/plugins/">Plugins | Hexo</a></p>
<figure class="highlight awk"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs awk">http:<span class="hljs-regexp">//</span>localhost:<span class="hljs-number">4000</span><span class="hljs-regexp">/blog/img</span><span class="hljs-regexp">/artical/m</span>ountain0414.jpg<br></code></pre></td></tr></table></figure>

<figure class="highlight awk"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs awk">http:<span class="hljs-regexp">//</span>localhost:<span class="hljs-number">4000</span><span class="hljs-regexp">/blog/mu</span>sic/OneDay.flac<br></code></pre></td></tr></table></figure>

<figure class="highlight xquery"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs xquery">(索引):<span class="hljs-number">321</span>  Uncaught ReferenceError: APlayer <span class="hljs-literal">is</span><span class="hljs-built_in"> not</span> defined<br></code></pre></td></tr></table></figure>

<p>中午两点半，搞出来一个基本的音乐播放器，选择直接硬编码。</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br></pre></td><td class="code"><pre><code class="hljs js">&lt;link rel=<span class="hljs-string">&quot;stylesheet&quot;</span> href=<span class="hljs-string">&quot;https://cdn.jsdelivr.net/npm/aplayer@1.10.1/dist/APlayer.min.css&quot;</span>&gt;<br><br><span class="language-xml"><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">id</span>=<span class="hljs-string">&quot;aplayer-sRJbrprR&quot;</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span></span><br><br><span class="language-xml"><span class="hljs-tag">&lt;<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">&quot;https://cdn.jsdelivr.net/npm/aplayer@1.10.1/dist/APlayer.min.js&quot;</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span></span><br><span class="language-xml"><span class="hljs-tag">&lt;<span class="hljs-name">script</span>&gt;</span><span class="language-javascript"></span></span><br><span class="language-javascript"><span class="language-xml"><span class="hljs-variable language_">document</span>.<span class="hljs-title function_">addEventListener</span>(<span class="hljs-string">&#x27;DOMContentLoaded&#x27;</span>, <span class="hljs-function">() =&gt;</span> &#123;</span></span><br><span class="language-javascript"><span class="language-xml">  <span class="hljs-keyword">new</span> <span class="hljs-title class_">APlayer</span>(&#123;</span></span><br><span class="language-javascript"><span class="language-xml">    <span class="hljs-attr">element</span>: <span class="hljs-variable language_">document</span>.<span class="hljs-title function_">getElementById</span>(<span class="hljs-string">&quot;aplayer-sRJbrprR&quot;</span>),</span></span><br><span class="language-javascript"><span class="language-xml">    <span class="hljs-attr">music</span>: &#123;</span></span><br><span class="language-javascript"><span class="language-xml">      <span class="hljs-attr">title</span>: <span class="hljs-string">&quot;One Day&quot;</span>,</span></span><br><span class="language-javascript"><span class="language-xml">      <span class="hljs-attr">author</span>: <span class="hljs-string">&quot;Mayrain&quot;</span>,</span></span><br><span class="language-javascript"><span class="language-xml">      <span class="hljs-attr">url</span>: <span class="hljs-string">&quot;/blog/music/WindyHill.mp3&quot;</span>,  <span class="hljs-comment">// 注意去掉空格</span></span></span><br><span class="language-javascript"><span class="language-xml">      <span class="hljs-attr">pic</span>: <span class="hljs-string">&quot;/blog/img/artical/mountain0414.jpg&quot;</span> <span class="hljs-comment">// 修正拼写</span></span></span><br><span class="language-javascript"><span class="language-xml">    &#125;</span></span><br><span class="language-javascript"><span class="language-xml">  &#125;);</span></span><br><span class="language-javascript"><span class="language-xml">&#125;);</span></span><br><span class="language-javascript"><span class="language-xml"></span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span></span><br></code></pre></td></tr></table></figure>

<p><img src="http://blog.memory-life.xyz/image-20250530143137688.png" alt="image-20250530143137688"></p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br></pre></td><td class="code"><pre><code class="hljs js">&lt;% <span class="hljs-keyword">if</span> (theme.<span class="hljs-property">aplayer</span>.<span class="hljs-property">enable</span>)&#123; %&gt;<br>  <span class="language-xml"><span class="hljs-tag">&lt;<span class="hljs-name">script</span> <span class="hljs-attr">defer</span>&gt;</span><span class="language-javascript"></span></span><br><span class="language-javascript"><span class="language-xml">    <span class="hljs-variable language_">window</span>.<span class="hljs-property">__aplayerQueue</span> = <span class="hljs-variable language_">window</span>.<span class="hljs-property">__aplayerQueue</span> || [];</span></span><br><span class="language-javascript"><span class="language-xml">    <span class="hljs-comment">// 将初始化函数存入队列</span></span></span><br><span class="language-javascript"><span class="language-xml">    <span class="hljs-variable language_">window</span>.<span class="hljs-property">__aplayerQueue</span>.<span class="hljs-title function_">push</span>(<span class="hljs-keyword">function</span>(<span class="hljs-params"></span>)&#123;</span></span><br><span class="language-javascript"><span class="language-xml">      <span class="hljs-keyword">new</span> <span class="hljs-title class_">APlayer</span>(&#123; <span class="hljs-comment">/* 配置 */</span> &#125;);</span></span><br><span class="language-javascript"><span class="language-xml">    &#125;);</span></span><br><span class="language-javascript"><span class="language-xml"></span></span><br><span class="language-javascript"><span class="language-xml">    <span class="hljs-comment">// 资源加载完成后执行队列</span></span></span><br><span class="language-javascript"><span class="language-xml">    <span class="hljs-keyword">function</span> <span class="hljs-title function_">fireAplayer</span>(<span class="hljs-params"></span>) &#123;</span></span><br><span class="language-javascript"><span class="language-xml">      <span class="hljs-variable language_">window</span>.<span class="hljs-property">__aplayerQueue</span>.<span class="hljs-title function_">forEach</span>(<span class="hljs-function"><span class="hljs-params">fn</span> =&gt;</span> <span class="hljs-title function_">fn</span>());</span></span><br><span class="language-javascript"><span class="language-xml">    &#125;</span></span><br><span class="language-javascript"><span class="language-xml">    <span class="hljs-variable language_">document</span>.<span class="hljs-title function_">addEventListener</span>(<span class="hljs-string">&#x27;APlayerReady&#x27;</span>, fireAplayer);</span></span><br><span class="language-javascript"><span class="language-xml">  </span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span></span><br>&lt;% &#125; %&gt;<br></code></pre></td></tr></table></figure>

<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-attr">aplayer:</span><br>  <span class="hljs-attr">enable:</span> <span class="hljs-literal">true</span> <span class="hljs-comment"># 完全关闭主题内置的播放器逻辑</span><br>  <span class="hljs-attr">asset_inject:</span> <span class="hljs-literal">false</span> <span class="hljs-comment"># 禁止自动注入资源</span><br>  <span class="hljs-attr">cdn:</span> <span class="hljs-string">https://cdn.jsdelivr.net/npm/aplayer@1.10.1/dist/APlayer.min.js</span><br>  <span class="hljs-attr">style_cdn:</span> <span class="hljs-string">https://cdn.jsdelivr.net/npm/aplayer@1.10.1/dist/APlayer.min.css</span><br>  <span class="hljs-attr">preload:</span> <span class="hljs-literal">true</span> <span class="hljs-comment"># 关键参数，强制同步加载</span><br></code></pre></td></tr></table></figure>

<p>这一招绝了，我直接手动提前加载，整体还是使用标签引入，不暴力手写代码引入。</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs js">&lt;script src=<span class="hljs-string">&quot;https://cdn.jsdelivr.net/npm/aplayer@1.10.1/dist/APlayer.min.js&quot;</span>&gt;&lt;/script&gt;<br>&#123;% aplayer <span class="hljs-string">&quot;One Day&quot;</span> <span class="hljs-string">&quot;Mayrain&quot;</span> <span class="hljs-string">&quot;/blog/music/WindyHill.mp3&quot;</span> <span class="hljs-string">&quot;/blog/img/artical/mountain0414.jpg&quot;</span> %&#125;<br></code></pre></td></tr></table></figure>

<p><img src="http://blog.memory-life.xyz/image-20250530144321907.png" alt="image-20250530144321907"></p>
<p>十六个小时连续不断地尝试，就连晚上睡觉做梦都在迷迷糊糊想办法，总算搞出来一个像样的文内音乐播放器。</p>
<p>下载插件。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">npm install --save hexo-tag-aplayer<br></code></pre></td></tr></table></figure>

<p>固定 Aplayer 以及 Meting 版本：</p>
<figure class="highlight json"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br></pre></td><td class="code"><pre><code class="hljs json"><span class="hljs-attr">&quot;dependencies&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">&#123;</span><br>  <span class="hljs-attr">&quot;aplayer&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;^1.10.1&quot;</span><span class="hljs-punctuation">,</span><br>  <span class="hljs-attr">&quot;hexo&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;^5.0.0&quot;</span><span class="hljs-punctuation">,</span><br>  <span class="hljs-attr">&quot;hexo-deployer-git&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;^4.0.0&quot;</span><span class="hljs-punctuation">,</span><br>  <span class="hljs-attr">&quot;hexo-generator-archive&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;^1.0.0&quot;</span><span class="hljs-punctuation">,</span><br>  <span class="hljs-attr">&quot;hexo-generator-category&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;^1.0.0&quot;</span><span class="hljs-punctuation">,</span><br>  <span class="hljs-attr">&quot;hexo-generator-index-pin-top&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;^0.2.2&quot;</span><span class="hljs-punctuation">,</span><br>  <span class="hljs-attr">&quot;hexo-generator-tag&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;^1.0.0&quot;</span><span class="hljs-punctuation">,</span><br>  <span class="hljs-attr">&quot;hexo-renderer-ejs&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;^1.0.0&quot;</span><span class="hljs-punctuation">,</span><br>  <span class="hljs-attr">&quot;hexo-renderer-marked&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;^4.0.0&quot;</span><span class="hljs-punctuation">,</span><br>  <span class="hljs-attr">&quot;hexo-renderer-stylus&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;^2.0.0&quot;</span><span class="hljs-punctuation">,</span><br>  <span class="hljs-attr">&quot;hexo-server&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;^2.0.0&quot;</span><span class="hljs-punctuation">,</span><br>  <span class="hljs-attr">&quot;hexo-tag-aplayer&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;^3.0.4&quot;</span><span class="hljs-punctuation">,</span><br>  <span class="hljs-attr">&quot;hexo-theme-fluid&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;^1.9.4&quot;</span><span class="hljs-punctuation">,</span><br>  <span class="hljs-attr">&quot;hexo-theme-landscape&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;^0.0.3&quot;</span><span class="hljs-punctuation">,</span><br>  <span class="hljs-attr">&quot;meting&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;^2.0.1&quot;</span><br><span class="hljs-punctuation">&#125;</span><br></code></pre></td></tr></table></figure>

<p>展示下相关配置，主题配置：</p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-attr">aplayer:</span><br>  <span class="hljs-attr">enable:</span> <span class="hljs-literal">false</span> <span class="hljs-comment"># 完全关闭主题内置的播放器逻辑</span><br>  <span class="hljs-attr">asset_inject:</span> <span class="hljs-literal">false</span> <span class="hljs-comment"># 禁止自动注入资源</span><br></code></pre></td></tr></table></figure>

<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-attr">custom_html:</span> <span class="hljs-string">&#x27;</span><br><span class="hljs-string"> &lt;!--音乐--&gt;</span><br><span class="hljs-string">  &lt;link rel=&quot;stylesheet&quot; href=&quot;https://cdn.jsdelivr.net/npm/aplayer@1.10.1/dist/APlayer.min.css&quot;&gt;</span><br><span class="hljs-string">  &lt;script src=&quot;https://cdn.jsdelivr.net/npm/aplayer@1.10.1/dist/APlayer.min.js&quot;&gt;&lt;/script&gt;</span><br><span class="hljs-string">  &lt;script src=&quot;https://cdn.jsdelivr.net/npm/meting@2/dist/Meting.min.js&quot;&gt;&lt;/script&gt;</span><br><span class="hljs-string">  &lt;div id=&quot;player&quot; class=&quot;aplayer aplayer-withlist aplayer-fixed&quot; data-id=&quot;3025663508&quot; data-server=&quot;netease&quot; data-type=&quot;playlist&quot; data-order=&quot;random&quot; data-fixed=&quot;true&quot; data-listfolded=&quot;true&quot; data-theme=&quot;#2D8CF0&quot;&gt;&lt;/div&gt;</span><br><span class="hljs-string">&#x27;</span><br></code></pre></td></tr></table></figure>

<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-comment"># 指定自定义 .js 文件路径，支持列表；路径是相对 source 目录，如 /js/custom.js 对应存放目录 source/js/custom.js</span><br><span class="hljs-comment"># Specify the path of your custom js file, support list. The path is relative to the source directory, such as `/js/custom.js` corresponding to the directory `source/js/custom.js`</span><br><span class="hljs-attr">custom_js:</span><br>  <span class="hljs-bullet">-</span> <span class="hljs-string">https://cdn.jsdelivr.net/npm/aplayer@1.10.1/dist/APlayer.min.js</span><br>  <span class="hljs-bullet">-</span> <span class="hljs-string">https://cdn.jsdelivr.net/npm/meting@2/dist/Meting.min.js</span><br><br><span class="hljs-comment"># 指定自定义 .css 文件路径，用法和 custom_js 相同</span><br><span class="hljs-comment"># The usage is the same as custom_js</span><br><br><span class="hljs-comment"># 指定自定义 .css 文件路径，用法和 custom_js 相同</span><br><span class="hljs-comment"># The usage is the same as custom_js</span><br><span class="hljs-attr">custom_css:</span><br>  <span class="hljs-bullet">-</span> <span class="hljs-string">//cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.css</span> <span class="hljs-comment">#/APlayer依赖</span><br></code></pre></td></tr></table></figure>

<p>博客全局配置：</p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-attr">aplayer:</span><br>  <span class="hljs-attr">meting:</span> <span class="hljs-literal">true</span><br>  <span class="hljs-attr">asset_inject:</span> <span class="hljs-literal">false</span><br></code></pre></td></tr></table></figure>

<p>接下来调整下单一歌曲音乐播放器的样式。</p>
<p><a target="_blank" rel="noopener" href="https://github.com/MoePlayer/hexo-tag-aplayer/blob/master/docs/README-zh_cn.md#%E8%87%AA%E5%AE%9A%E4%B9%89%E9%85%8D%E7%BD%AE30-%E6%96%B0%E5%8A%9F%E8%83%BD">hexo-tag-aplayer/docs/README-zh_cn.md at master · MoePlayer/hexo-tag-aplayer · GitHub</a></p>
<p><a target="_blank" rel="noopener" href="https://www.fangpi.net/music/11638682">Windy Hill-羽肿-mp3 免费在线下载播放-放屁网-全网音乐 MP3 高品质在线免费下载、在线免费播放 (fangpi.net)</a></p>
<p>他妈的这 meting 版本还限制挺低：</p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-attr">custom_html:</span> <span class="hljs-string">&#x27;</span><br><span class="hljs-string"> &lt;!--音乐--&gt;</span><br><span class="hljs-string">  &lt;link rel=&quot;stylesheet&quot; href=&quot;https://cdn.jsdelivr.net/npm/aplayer@1.10.1/dist/APlayer.min.css&quot;&gt;</span><br><span class="hljs-string">  &lt;script src=&quot;https://cdn.jsdelivr.net/npm/aplayer@1.10.1/dist/APlayer.min.js&quot;&gt;&lt;/script&gt;</span><br><span class="hljs-string">  &lt;script src=&quot;https://cdn.jsdelivr.net/npm/meting@1.2/dist/Meting.min.js&quot;&gt;&lt;/script&gt;</span><br><span class="hljs-string">  &lt;div id=&quot;player&quot; class=&quot;aplayer aplayer-withlist aplayer-fixed&quot; data-id=&quot;3025663508&quot; data-server=&quot;netease&quot; data-type=&quot;playlist&quot; data-order=&quot;random&quot; data-fixed=&quot;true&quot; data-listfolded=&quot;true&quot; data-theme=&quot;#2D8CF0&quot;&gt;&lt;/div&gt;</span><br><span class="hljs-string">&#x27;</span><br></code></pre></td></tr></table></figure>

<p>搞定了。</p>
<p>以下是完整的音乐播放器代码，阴差阳错之间匹配成功。</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs js">&lt;script src=<span class="hljs-string">&quot;https://cdn.jsdelivr.net/npm/aplayer@1.10.1/dist/APlayer.min.js&quot;</span>&gt;&lt;/script&gt;<br> <span class="language-xml"><span class="hljs-tag">&lt;<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">&quot;https://cdn.jsdelivr.net/npm/meting@1.2/dist/Meting.min.js&quot;</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span></span><br></code></pre></td></tr></table></figure>

<figure class="highlight livescript"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs livescript">&#123;% meting <span class="hljs-string">&quot;60198&quot;</span> <span class="hljs-string">&quot;netease&quot;</span> <span class="hljs-string">&quot;playlist&quot;</span> <span class="hljs-string">&quot;autoplay&quot;</span> <span class="hljs-string">&quot;mutex:false&quot;</span> <span class="hljs-string">&quot;listmaxheight:340px&quot;</span> <span class="hljs-string">&quot;preload:none&quot;</span> <span class="hljs-string">&quot;theme:<span class="hljs-subst">#ad7a86</span>&quot;</span>%&#125;<br></code></pre></td></tr></table></figure>

<p><img src="http://blog.memory-life.xyz/image-20250530153220450.png" alt="image-20250530153220450"></p>
<p>来个官网插件参数翻译。</p>
<p>实现一个简单的加载动画。</p>
<figure class="highlight xml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><code class="hljs xml">## Favorite<br><br><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">id</span>=<span class="hljs-string">&quot;loading&quot;</span> <span class="hljs-attr">style</span>=<span class="hljs-string">&quot;text-align:center; padding:20px;&quot;</span>&gt;</span>   正在加载歌单，请稍候...   <span class="hljs-comment">&lt;!-- 可以在这里添加加载动画 --&gt;</span>   <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;spinner&quot;</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span> <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span><br><br><span class="hljs-tag">&lt;<span class="hljs-name">style</span>&gt;</span><span class="language-css"> <span class="hljs-selector-class">.spinner</span> &#123;   <span class="hljs-attribute">border</span>: <span class="hljs-number">4px</span> solid <span class="hljs-built_in">rgba</span>(<span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0.1</span>);   <span class="hljs-attribute">width</span>: <span class="hljs-number">36px</span>;   <span class="hljs-attribute">height</span>: <span class="hljs-number">36px</span>;   <span class="hljs-attribute">border-radius</span>: <span class="hljs-number">50%</span>;   <span class="hljs-attribute">border-left-color</span>: <span class="hljs-number">#31C27C</span>;   <span class="hljs-attribute">animation</span>: spin <span class="hljs-number">1s</span> linear infinite;   <span class="hljs-attribute">margin</span>: <span class="hljs-number">10px</span> auto; &#125;  <span class="hljs-keyword">@keyframes</span> spin &#123;   <span class="hljs-number">0%</span> &#123; <span class="hljs-attribute">transform</span>: <span class="hljs-built_in">rotate</span>(<span class="hljs-number">0deg</span>); &#125;   <span class="hljs-number">100%</span> &#123; <span class="hljs-attribute">transform</span>: <span class="hljs-built_in">rotate</span>(<span class="hljs-number">360deg</span>); &#125; &#125; </span><span class="hljs-tag">&lt;/<span class="hljs-name">style</span>&gt;</span><br><br><span class="hljs-tag">&lt;<span class="hljs-name">script</span>&gt;</span><span class="language-javascript"> <span class="hljs-comment">// 无论播放器是否加载完成，3秒后都隐藏加载动画</span></span><br><span class="language-javascript">    <span class="hljs-built_in">setTimeout</span>(<span class="hljs-keyword">function</span>(<span class="hljs-params"></span>) &#123;   <span class="hljs-variable language_">document</span>.<span class="hljs-title function_">getElementById</span>(<span class="hljs-string">&#x27;loading&#x27;</span>).<span class="hljs-property">style</span>.<span class="hljs-property">display</span> = <span class="hljs-string">&#x27;none&#x27;</span>; &#125;, <span class="hljs-number">3000</span>); <span class="hljs-comment">// 3000毫秒 = 3秒 </span></span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span><br></code></pre></td></tr></table></figure>

<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/nalanxiaoxiao2011/article/details/139720622">Markdown 如何分页操作_markdown 分页符-CSDN 博客</a></p>
<p>保存下第一版音乐餐厅页面：</p>
<figure class="highlight html"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br><span class="line">82</span><br><span class="line">83</span><br><span class="line">84</span><br><span class="line">85</span><br><span class="line">86</span><br><span class="line">87</span><br><span class="line">88</span><br><span class="line">89</span><br><span class="line">90</span><br><span class="line">91</span><br><span class="line">92</span><br><span class="line">93</span><br><span class="line">94</span><br><span class="line">95</span><br><span class="line">96</span><br><span class="line">97</span><br><span class="line">98</span><br><span class="line">99</span><br><span class="line">100</span><br><span class="line">101</span><br><span class="line">102</span><br><span class="line">103</span><br><span class="line">104</span><br><span class="line">105</span><br><span class="line">106</span><br><span class="line">107</span><br><span class="line">108</span><br><span class="line">109</span><br><span class="line">110</span><br><span class="line">111</span><br><span class="line">112</span><br><span class="line">113</span><br><span class="line">114</span><br><span class="line">115</span><br><span class="line">116</span><br><span class="line">117</span><br><span class="line">118</span><br><span class="line">119</span><br><span class="line">120</span><br><span class="line">121</span><br><span class="line">122</span><br><span class="line">123</span><br><span class="line">124</span><br><span class="line">125</span><br><span class="line">126</span><br><span class="line">127</span><br><span class="line">128</span><br><span class="line">129</span><br><span class="line">130</span><br><span class="line">131</span><br><span class="line">132</span><br><span class="line">133</span><br><span class="line">134</span><br><span class="line">135</span><br><span class="line">136</span><br><span class="line">137</span><br><span class="line">138</span><br><span class="line">139</span><br><span class="line">140</span><br><span class="line">141</span><br><span class="line">142</span><br><span class="line">143</span><br><span class="line">144</span><br><span class="line">145</span><br><span class="line">146</span><br><span class="line">147</span><br><span class="line">148</span><br><span class="line">149</span><br><span class="line">150</span><br><span class="line">151</span><br><span class="line">152</span><br><span class="line">153</span><br><span class="line">154</span><br><span class="line">155</span><br><span class="line">156</span><br><span class="line">157</span><br><span class="line">158</span><br><span class="line">159</span><br><span class="line">160</span><br><span class="line">161</span><br><span class="line">162</span><br><span class="line">163</span><br><span class="line">164</span><br><span class="line">165</span><br><span class="line">166</span><br><span class="line">167</span><br><span class="line">168</span><br><span class="line">169</span><br><span class="line">170</span><br><span class="line">171</span><br><span class="line">172</span><br><span class="line">173</span><br><span class="line">174</span><br><span class="line">175</span><br><span class="line">176</span><br><span class="line">177</span><br><span class="line">178</span><br><span class="line">179</span><br><span class="line">180</span><br><span class="line">181</span><br><span class="line">182</span><br><span class="line">183</span><br><span class="line">184</span><br><span class="line">185</span><br><span class="line">186</span><br><span class="line">187</span><br><span class="line">188</span><br><span class="line">189</span><br><span class="line">190</span><br><span class="line">191</span><br><span class="line">192</span><br><span class="line">193</span><br><span class="line">194</span><br><span class="line">195</span><br><span class="line">196</span><br><span class="line">197</span><br><span class="line">198</span><br><span class="line">199</span><br><span class="line">200</span><br><span class="line">201</span><br><span class="line">202</span><br><span class="line">203</span><br><span class="line">204</span><br><span class="line">205</span><br><span class="line">206</span><br><span class="line">207</span><br><span class="line">208</span><br><span class="line">209</span><br><span class="line">210</span><br><span class="line">211</span><br><span class="line">212</span><br></pre></td><td class="code"><pre><code class="hljs html"><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;music-container&quot;</span>&gt;</span><br>  <span class="hljs-comment">&lt;!-- 页面标题和介绍 --&gt;</span><br>  <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;music-header&quot;</span>&gt;</span><br>    <span class="hljs-tag">&lt;<span class="hljs-name">h1</span>&gt;</span>我的音乐收藏<span class="hljs-tag">&lt;/<span class="hljs-name">h1</span>&gt;</span><br>    <span class="hljs-tag">&lt;<span class="hljs-name">p</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;intro-text&quot;</span>&gt;</span><br>      这里收藏了我精心挑选的两份歌单，包含不同风格的音乐作品。点击播放按钮即可开始欣赏，也可以将喜欢的歌曲加入你的收藏~<br>    <span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span><br>  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span><br><br>  <span class="hljs-comment">&lt;!-- 加载动画 --&gt;</span><br><br>  <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">id</span>=<span class="hljs-string">&quot;loading&quot;</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;loading-animation&quot;</span>&gt;</span><br>    <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;spinner&quot;</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span><br>    <span class="hljs-tag">&lt;<span class="hljs-name">p</span>&gt;</span>正在加载音乐资源，请稍候...<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span><br>  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span><br><br>  <span class="hljs-comment">&lt;!-- 第一个歌单 --&gt;</span><br><br>  <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;playlist-card&quot;</span>&gt;</span><br>    <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;playlist-info&quot;</span>&gt;</span><br>      <span class="hljs-tag">&lt;<span class="hljs-name">h2</span>&gt;</span>🎵 清新民谣精选<span class="hljs-tag">&lt;/<span class="hljs-name">h2</span>&gt;</span><br>      <span class="hljs-tag">&lt;<span class="hljs-name">p</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;playlist-desc&quot;</span>&gt;</span><br>        这个歌单收录了温暖治愈的民谣作品，适合午后小憩或夜晚放松时聆听。包含陈粒、房东的猫、赵雷等歌手的代表作。<br>      <span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span><br>      <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;stats&quot;</span>&gt;</span><br>        <span class="hljs-tag">&lt;<span class="hljs-name">span</span>&gt;</span>📅 更新时间: 2025.5<span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span><br>        <span class="hljs-tag">&lt;<span class="hljs-name">span</span>&gt;</span>🎶 歌曲数量: 506<span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span><br>      <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span><br>    <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span><br>  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span><br><br>  <span class="hljs-tag">&lt;<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">&quot;https://cdn.jsdelivr.net/npm/aplayer@1.10.1/dist/APlayer.min.js&quot;</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span><br>  <span class="hljs-tag">&lt;<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">&quot;https://cdn.jsdelivr.net/npm/meting@1.2/dist/Meting.min.js&quot;</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span><br><br>  &#123;% meting &quot;8647467106&quot; &quot;tencent&quot; &quot;playlist&quot; &quot;mutex:false&quot;<br>  &quot;listmaxheight:400px&quot; &quot;preload:none&quot; &quot;theme:#31C27C&quot; %&#125;<br><br>  <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">style</span>=<span class="hljs-string">&quot;page-break-after: always;&quot;</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span><br><br>  <span class="hljs-comment">&lt;!-- 第二个歌单 --&gt;</span><br><br>  ------<br><br>  <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;playlist-card&quot;</span>&gt;</span><br>    <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;playlist-info&quot;</span>&gt;</span><br>      <span class="hljs-tag">&lt;<span class="hljs-name">h2</span>&gt;</span>🎧 治愈纯音乐<span class="hljs-tag">&lt;/<span class="hljs-name">h2</span>&gt;</span><br>      <span class="hljs-tag">&lt;<span class="hljs-name">p</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;playlist-desc&quot;</span>&gt;</span><br>        充满未来感的电子音乐合集，适合工作专注、运动健身或派对场景。包含The<br>        Chainsmokers、Alan Walker等艺术家的热门曲目。<br>      <span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span><br>      <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;stats&quot;</span>&gt;</span><br>        <span class="hljs-tag">&lt;<span class="hljs-name">span</span>&gt;</span>📅 更新时间: 2025.05<span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span><br>        <span class="hljs-tag">&lt;<span class="hljs-name">span</span>&gt;</span>🎶 歌曲数量: 477<span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span><br>      <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span><br>    <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span><br>  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span><br><br>  <span class="hljs-tag">&lt;<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">&quot;https://cdn.jsdelivr.net/npm/aplayer@1.10.1/dist/APlayer.min.js&quot;</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span><br>  <span class="hljs-tag">&lt;<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">&quot;https://cdn.jsdelivr.net/npm/meting@1.2/dist/Meting.min.js&quot;</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span><br><br>  &#123;% meting &quot;8181427733&quot; &quot;tencent&quot; &quot;playlist&quot; &quot;mutex:false&quot;<br>  &quot;listmaxheight:400px&quot; &quot;preload:none&quot; &quot;theme:#2D8CF0&quot; %&#125;<br><br>  <span class="hljs-comment">&lt;!-- 页面底部引导 --&gt;</span><br><br>  <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;music-footer&quot;</span>&gt;</span><br>    <span class="hljs-tag">&lt;<span class="hljs-name">p</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;feedback&quot;</span>&gt;</span>有什么建议或想听的音乐类型？<span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;#&quot;</span>&gt;</span>告诉我<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span><br>  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span><br><span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span><br><br><span class="hljs-tag">&lt;<span class="hljs-name">style</span>&gt;</span><span class="language-css"></span><br><span class="language-css">  <span class="hljs-comment">/* 全局样式 */</span></span><br><span class="language-css">  <span class="hljs-selector-class">.music-container</span> &#123;</span><br><span class="language-css">    <span class="hljs-attribute">max-width</span>: <span class="hljs-number">900px</span>;</span><br><span class="language-css">    <span class="hljs-attribute">margin</span>: <span class="hljs-number">0</span> auto;</span><br><span class="language-css">    <span class="hljs-attribute">padding</span>: <span class="hljs-number">20px</span>;</span><br><span class="language-css">    <span class="hljs-attribute">font-family</span>: <span class="hljs-string">&quot;Helvetica Neue&quot;</span>, Arial, sans-serif;</span><br><span class="language-css">    <span class="hljs-attribute">color</span>: <span class="hljs-number">#333</span>;</span><br><span class="language-css">  &#125;</span><br><span class="language-css">  <span class="hljs-comment">/* 头部样式 */</span></span><br><span class="language-css">  <span class="hljs-selector-class">.music-header</span> &#123;</span><br><span class="language-css">    <span class="hljs-attribute">text-align</span>: center;</span><br><span class="language-css">    <span class="hljs-attribute">margin-bottom</span>: <span class="hljs-number">30px</span>;</span><br><span class="language-css">  &#125;</span><br><span class="language-css">  <span class="hljs-selector-class">.music-header</span> <span class="hljs-selector-tag">h1</span> &#123;</span><br><span class="language-css">    <span class="hljs-attribute">color</span>: <span class="hljs-number">#31c27c</span>;</span><br><span class="language-css">    <span class="hljs-attribute">font-size</span>: <span class="hljs-number">2.2em</span>;</span><br><span class="language-css">    <span class="hljs-attribute">margin-bottom</span>: <span class="hljs-number">10px</span>;</span><br><span class="language-css">  &#125;</span><br><span class="language-css">  <span class="hljs-selector-class">.intro-text</span> &#123;</span><br><span class="language-css">    <span class="hljs-attribute">color</span>: <span class="hljs-number">#666</span>;</span><br><span class="language-css">    <span class="hljs-attribute">line-height</span>: <span class="hljs-number">1.6</span>;</span><br><span class="language-css">    <span class="hljs-attribute">max-width</span>: <span class="hljs-number">700px</span>;</span><br><span class="language-css">    <span class="hljs-attribute">margin</span>: <span class="hljs-number">0</span> auto;</span><br><span class="language-css">  &#125;</span><br><span class="language-css">  <span class="hljs-comment">/* 歌单卡片样式 */</span></span><br><span class="language-css">  <span class="hljs-selector-class">.playlist-card</span> &#123;</span><br><span class="language-css">    <span class="hljs-attribute">display</span>: flex;</span><br><span class="language-css">    <span class="hljs-attribute">background</span>: white;</span><br><span class="language-css">    <span class="hljs-attribute">border-radius</span>: <span class="hljs-number">10px</span>;</span><br><span class="language-css">    <span class="hljs-attribute">box-shadow</span>: <span class="hljs-number">0</span> <span class="hljs-number">4px</span> <span class="hljs-number">12px</span> <span class="hljs-built_in">rgba</span>(<span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0.08</span>);</span><br><span class="language-css">    <span class="hljs-attribute">margin-bottom</span>: <span class="hljs-number">30px</span>;</span><br><span class="language-css">    <span class="hljs-attribute">overflow</span>: hidden;</span><br><span class="language-css">  &#125;</span><br><span class="language-css">  <span class="hljs-selector-class">.playlist-info</span> &#123;</span><br><span class="language-css">    <span class="hljs-attribute">flex</span>: <span class="hljs-number">1</span>;</span><br><span class="language-css">    <span class="hljs-attribute">padding</span>: <span class="hljs-number">25px</span>;</span><br><span class="language-css">    <span class="hljs-attribute">min-width</span>: <span class="hljs-number">250px</span>;</span><br><span class="language-css">  &#125;</span><br><span class="language-css">  <span class="hljs-selector-class">.player-wrapper</span> &#123;</span><br><span class="language-css">    <span class="hljs-attribute">flex</span>: <span class="hljs-number">1</span>;</span><br><span class="language-css">    <span class="hljs-attribute">min-width</span>: <span class="hljs-number">300px</span>;</span><br><span class="language-css">  &#125;</span><br><span class="language-css">  <span class="hljs-selector-class">.playlist-card</span> <span class="hljs-selector-tag">h2</span> &#123;</span><br><span class="language-css">    <span class="hljs-attribute">color</span>: <span class="hljs-number">#444</span>;</span><br><span class="language-css">    <span class="hljs-attribute">margin-top</span>: <span class="hljs-number">0</span>;</span><br><span class="language-css">    <span class="hljs-attribute">margin-bottom</span>: <span class="hljs-number">15px</span>;</span><br><span class="language-css">    <span class="hljs-attribute">font-size</span>: <span class="hljs-number">1.5em</span>;</span><br><span class="language-css">  &#125;</span><br><span class="language-css">  <span class="hljs-selector-class">.playlist-desc</span> &#123;</span><br><span class="language-css">    <span class="hljs-attribute">color</span>: <span class="hljs-number">#666</span>;</span><br><span class="language-css">    <span class="hljs-attribute">line-height</span>: <span class="hljs-number">1.6</span>;</span><br><span class="language-css">    <span class="hljs-attribute">margin-bottom</span>: <span class="hljs-number">20px</span>;</span><br><span class="language-css">  &#125;</span><br><span class="language-css">  <span class="hljs-selector-class">.stats</span> &#123;</span><br><span class="language-css">    <span class="hljs-attribute">display</span>: flex;</span><br><span class="language-css">    <span class="hljs-attribute">flex-wrap</span>: wrap;</span><br><span class="language-css">    <span class="hljs-attribute">gap</span>: <span class="hljs-number">15px</span>;</span><br><span class="language-css">    <span class="hljs-attribute">color</span>: <span class="hljs-number">#888</span>;</span><br><span class="language-css">    <span class="hljs-attribute">font-size</span>: <span class="hljs-number">0.9em</span>;</span><br><span class="language-css">  &#125; <span class="hljs-comment">/* 加载动画 */</span></span><br><span class="language-css">  <span class="hljs-selector-class">.loading-animation</span> &#123;</span><br><span class="language-css">    <span class="hljs-attribute">text-align</span>: center;</span><br><span class="language-css">    <span class="hljs-attribute">padding</span>: <span class="hljs-number">30px</span>;</span><br><span class="language-css">    <span class="hljs-attribute">margin</span>: <span class="hljs-number">20px</span> <span class="hljs-number">0</span>;</span><br><span class="language-css">  &#125;</span><br><span class="language-css">  <span class="hljs-selector-class">.spinner</span> &#123;</span><br><span class="language-css">    <span class="hljs-attribute">border</span>: <span class="hljs-number">4px</span> solid <span class="hljs-built_in">rgba</span>(<span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0</span>, <span class="hljs-number">0.1</span>);</span><br><span class="language-css">    <span class="hljs-attribute">width</span>: <span class="hljs-number">36px</span>;</span><br><span class="language-css">    <span class="hljs-attribute">height</span>: <span class="hljs-number">36px</span>;</span><br><span class="language-css">    <span class="hljs-attribute">border-radius</span>: <span class="hljs-number">50%</span>;</span><br><span class="language-css">    <span class="hljs-attribute">border-left-color</span>: <span class="hljs-number">#31c27c</span>;</span><br><span class="language-css">    <span class="hljs-attribute">animation</span>: spin <span class="hljs-number">1s</span> linear infinite;</span><br><span class="language-css">    <span class="hljs-attribute">margin</span>: <span class="hljs-number">0</span> auto <span class="hljs-number">15px</span>;</span><br><span class="language-css">  &#125;</span><br><span class="language-css">  <span class="hljs-keyword">@keyframes</span> spin &#123;</span><br><span class="language-css">    <span class="hljs-number">0%</span> &#123;</span><br><span class="language-css">      <span class="hljs-attribute">transform</span>: <span class="hljs-built_in">rotate</span>(<span class="hljs-number">0deg</span>);</span><br><span class="language-css">    &#125;</span><br><span class="language-css">    <span class="hljs-number">100%</span> &#123;</span><br><span class="language-css">      <span class="hljs-attribute">transform</span>: <span class="hljs-built_in">rotate</span>(<span class="hljs-number">360deg</span>);</span><br><span class="language-css">    &#125;</span><br><span class="language-css">  &#125; <span class="hljs-comment">/* 底部样式 */</span></span><br><span class="language-css">  <span class="hljs-selector-class">.music-footer</span> &#123;</span><br><span class="language-css">    <span class="hljs-attribute">text-align</span>: center;</span><br><span class="language-css">    <span class="hljs-attribute">margin-top</span>: <span class="hljs-number">40px</span>;</span><br><span class="language-css">    <span class="hljs-attribute">padding-top</span>: <span class="hljs-number">20px</span>;</span><br><span class="language-css">    <span class="hljs-attribute">border-top</span>: <span class="hljs-number">1px</span> solid <span class="hljs-number">#eee</span>;</span><br><span class="language-css">  &#125;</span><br><span class="language-css">  <span class="hljs-selector-class">.social-share</span> &#123;</span><br><span class="language-css">    <span class="hljs-attribute">display</span>: flex;</span><br><span class="language-css">    <span class="hljs-attribute">justify-content</span>: center;</span><br><span class="language-css">    <span class="hljs-attribute">gap</span>: <span class="hljs-number">10px</span>;</span><br><span class="language-css">    <span class="hljs-attribute">margin</span>: <span class="hljs-number">15px</span> <span class="hljs-number">0</span>;</span><br><span class="language-css">  &#125;</span><br><span class="language-css">  <span class="hljs-selector-class">.share-btn</span> &#123;</span><br><span class="language-css">    <span class="hljs-attribute">background</span>: <span class="hljs-number">#f0f0f0</span>;</span><br><span class="language-css">    <span class="hljs-attribute">border</span>: none;</span><br><span class="language-css">    <span class="hljs-attribute">padding</span>: <span class="hljs-number">8px</span> <span class="hljs-number">15px</span>;</span><br><span class="language-css">    <span class="hljs-attribute">border-radius</span>: <span class="hljs-number">20px</span>;</span><br><span class="language-css">    <span class="hljs-attribute">cursor</span>: pointer;</span><br><span class="language-css">    <span class="hljs-attribute">transition</span>: background <span class="hljs-number">0.2s</span>;</span><br><span class="language-css">  &#125;</span><br><span class="language-css">  <span class="hljs-selector-class">.share-btn</span><span class="hljs-selector-pseudo">:hover</span> &#123;</span><br><span class="language-css">    <span class="hljs-attribute">background</span>: <span class="hljs-number">#e0e0e0</span>;</span><br><span class="language-css">  &#125;</span><br><span class="language-css">  <span class="hljs-selector-class">.feedback</span> &#123;</span><br><span class="language-css">    <span class="hljs-attribute">color</span>: <span class="hljs-number">#999</span>;</span><br><span class="language-css">    <span class="hljs-attribute">font-size</span>: <span class="hljs-number">0.9em</span>;</span><br><span class="language-css">  &#125;</span><br><span class="language-css">  <span class="hljs-selector-class">.feedback</span> <span class="hljs-selector-tag">a</span> &#123;</span><br><span class="language-css">    <span class="hljs-attribute">color</span>: <span class="hljs-number">#31c27c</span>;</span><br><span class="language-css">    <span class="hljs-attribute">text-decoration</span>: none;</span><br><span class="language-css">  &#125; <span class="hljs-comment">/* 响应式设计 */</span></span><br><span class="language-css">  <span class="hljs-keyword">@media</span> (<span class="hljs-attribute">max-width</span>: <span class="hljs-number">768px</span>) &#123;</span><br><span class="language-css">    <span class="hljs-selector-class">.playlist-card</span> &#123;</span><br><span class="language-css">      <span class="hljs-attribute">flex-direction</span>: column;</span><br><span class="language-css">    &#125;</span><br><span class="language-css">    <span class="hljs-selector-class">.player-wrapper</span> &#123;</span><br><span class="language-css">      <span class="hljs-attribute">min-width</span>: <span class="hljs-number">100%</span>;</span><br><span class="language-css">    &#125;</span><br><span class="language-css">  &#125;</span><br><span class="language-css"></span><span class="hljs-tag">&lt;/<span class="hljs-name">style</span>&gt;</span><br><br><span class="hljs-tag">&lt;<span class="hljs-name">script</span>&gt;</span><span class="language-javascript"></span><br><span class="language-javascript">  <span class="hljs-comment">// 加载完成后隐藏动画</span></span><br><span class="language-javascript">  <span class="hljs-keyword">function</span> <span class="hljs-title function_">hideLoader</span>(<span class="hljs-params"></span>) &#123;</span><br><span class="language-javascript">    <span class="hljs-variable language_">document</span>.<span class="hljs-title function_">getElementById</span>(<span class="hljs-string">&quot;loading&quot;</span>).<span class="hljs-property">style</span>.<span class="hljs-property">display</span> = <span class="hljs-string">&quot;none&quot;</span>;</span><br><span class="language-javascript">  &#125; <span class="hljs-comment">// 设置3秒超时隐藏</span></span><br><span class="language-javascript">  <span class="hljs-built_in">setTimeout</span>(hideLoader, <span class="hljs-number">3000</span>);</span><br><span class="language-javascript">  <span class="hljs-comment">// 如果播放器提前加载完成也隐藏</span></span><br><span class="language-javascript">  <span class="hljs-keyword">function</span> <span class="hljs-title function_">checkPlayers</span>(<span class="hljs-params"></span>) &#123;</span><br><span class="language-javascript">    <span class="hljs-keyword">const</span> players = <span class="hljs-variable language_">document</span>.<span class="hljs-title function_">querySelectorAll</span>(<span class="hljs-string">&quot;.aplayer&quot;</span>);</span><br><span class="language-javascript">    <span class="hljs-keyword">if</span> (players.<span class="hljs-property">length</span> === <span class="hljs-number">2</span>) &#123;</span><br><span class="language-javascript">      <span class="hljs-comment">// 确保两个播放器都加载完成</span></span><br><span class="language-javascript">      <span class="hljs-title function_">hideLoader</span>();</span><br><span class="language-javascript">    &#125; <span class="hljs-keyword">else</span> &#123;</span><br><span class="language-javascript">      <span class="hljs-built_in">setTimeout</span>(checkPlayers, <span class="hljs-number">100</span>);</span><br><span class="language-javascript">    &#125;</span><br><span class="language-javascript">  &#125;</span><br><span class="language-javascript">  <span class="hljs-title function_">checkPlayers</span>();</span><br><span class="language-javascript"></span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span><br></code></pre></td></tr></table></figure>

<p><img src="http://blog.memory-life.xyz/image-20250530190142335.png" alt="image-20250530190142335"></p>
<p>不论怎么优化都不大好看。。</p>
<p>简约些。</p>
<h1 id="友情链接"><a href="#友情链接" class="headerlink" title="友情链接"></a>友情链接</h1><blockquote>
<p>2025 年 5 月 31 日</p>
</blockquote>
<p>昨天晚上八点钟前，花了一个多小时总算搞定了音乐餐厅的最终页面，花了整整二十四小时才总算交稿，真不算容易。</p>
<p>重新更换了首页导航栏的一部分封面大图，看起来更加美观大气了，上周收集下载的精美壁纸总算派上了用场，不过现在文章顺序被打乱了。</p>
<p><a target="_blank" rel="noopener" href="https://docs.nexmoe.com/v3.2/hexo/aplayer">插入音乐 | 🔥 一个比较特别的 Hexo 主题 (nexmoe.com)</a></p>
<h1 id="文章页"><a href="#文章页" class="headerlink" title="文章页"></a>文章页</h1><blockquote>
<p>2025 年 6 月 1 日</p>
</blockquote>
<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">一个人至少拥有一个梦想，有一个理由去坚强。心若没有栖息的地方，到哪里都是在流浪。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">每一片落叶都承载着岁月的痕迹，而飘落的瞬间，也是新生的开始。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">每一次跌倒都是成长的垫脚石，让我们站得更高，看得更远。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">人生如逆旅，我亦是行人，但心中有爱，便不觉孤单。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">梦想，是心灵的灯塔，照亮我们前行的道路，让我们在黑暗中也能找到方向。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">真正的富有，不在于物质的堆砌，而在于精神的富足与内心的宁静。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">每一次的回首，都是对过往的温柔告别，也是对未来勇敢前行的期许。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">梦想是心灵的指南针，无论身处何方，都能指引我们找到回家的路。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">人生如诗，不在于辞藻的华丽，而在于情感的真挚与深邃，每一行都是心灵的独白。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">每一次的选择，都是对未来的期许，让我们在不确定中寻找到属于自己的方向。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">以前总谈理想，现在只想睡个好觉。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">每一颗心都是一座孤岛，但爱能搭建桥梁，让我们彼此相连，共同抵御风雨。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">在这纷扰的世界里，愿你的心如一片宁静的湖泊，波澜不惊，温柔以待每一个晨曦与黄昏。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">每一次的离别，都是为了更好的重逢，让我们珍惜每一次的相聚时光，铭记于心。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">人生就像一场舞台剧，我们都是自己的导演与演员，用心演绎每一个角色，活出自己的精彩。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">让我们以一颗平和的心，去面对生活的起起伏伏，因为内心的宁静才是最大的力量。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">岁月悠悠，带走了青春的容颜，却留下了更加成熟与深邃的灵魂。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">就像花朵需要阳光和雨露，你的心也需要被爱和关怀滋养，才能绽放出最灿烂的笑容。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">生活的每一个瞬间都是独一无二的，让我们用心去感受，去珍惜。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">当你感到迷茫时，不妨放慢脚步，听听内心的声音，它会指引你找到属于自己的方向。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">无论遇到多大的困难，都请相信，时间会带走一切伤痛，留下的是更加坚韧和成熟的自己。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">就像大海包容每一滴水珠，愿你的胸怀也能如此宽广，接纳世间万物，包括那些不完美的自己。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">每一次呼吸都是宇宙间最温柔的拥抱，提醒我们，无论身处何方，都不孤单。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">就像春天的花朵，无论经历了多少寒冬的洗礼，都会在春风的吹拂下绽放出最灿烂的笑容。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">每一个夜晚的降临，都是为了让心灵得到休息，让明天的你更加充满活力和希望。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">给自己一些温柔的时光，去聆听内心的声音，去感受那份宁静与平和。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">当你感到疲惫时，记得抬头看看星空，那无尽的宇宙正温柔地告诉你：你比想象中更加坚强和美丽。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">生命因未知而精彩，每一步都踏着成长的节拍。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">真正的勇气，不是不感到害怕，而是即便害怕也选择前行。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">明明是为了生活而工作，却为了工作而疏远了生活。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">人生如戏，我们都是自己故事的主角，用心演绎，精彩纷呈。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">心怀希望，即使在最深的黑暗中也能找到光明。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">真正的智慧，在于认识到自己的无知，并持续学习，不断进步。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">真正的智慧，在于认识到自己的无知，并持续学习，不断进步。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">生命的旅程就像一场冒险，每一步都充满了未知与惊喜。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">每一次告别都是为了更好的重逢，让我们学会珍惜，也学会放手。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">每一个梦想都值得我们去追逐，无论多远，都要坚持到底。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">心怀善念，世界将回馈以温暖；心怀感恩，生活将充满阳光。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">每一场旅程都是一次自我超越，让我们不断前行，不断探索。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">勇气不是不感到害怕，而是即便颤抖也选择站出来。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">心若向阳，无谓悲伤，微笑面对，生活自会报以温暖。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">岁月漫长，然而值得期待，因为美好总在不经意间到来。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">每一个黎明都带来新的希望，让我们满怀信心地迎接每一个新的开始。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">不要因为结束而哭泣，要因为它发生过而欣喜。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">无论风雨，无论晴天，愿你我都能以一颗平和的心，走过人生的四季。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">每一次的相遇都是久别重逢，珍惜身边人，因为缘分不易。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">人生如茶，初尝或许苦涩，但细品之后，回甘无穷。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">每个人的心中都有一片未被发现的海洋，勇敢地去探索吧。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">每次归程，都是为了更好出发；每次停歇，都是为了积攒力量<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">人生如戏，我们都是自己故事的主角，用心演绎，精彩纷呈。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">每一次的选择，都塑造了今天的自己，未来的路，因选择而不同。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">生命中的每一次相遇，都是命运的安排，珍惜每一次的邂逅，因为那可能是你生命中的贵人。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">人生就像一场马拉松，重要的不是瞬间的爆发，而是途中的坚持与信念。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">心态决定命运，用积极的心态去面对生活，生活也会以同样的方式回应你。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">真正的幸福，不是拥有多少财富和地位，而是内心的充实与满足，以及身边人的陪伴与关爱。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">真正的幸福，不在于外界的评价和物质的丰富，而在于内心的平和与满足。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">梦想再大也不嫌大，追梦的人再小也不嫌小，因为心中有梦，就有无限可能。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">生活不在于拥有多少，而在于感知多少，用心去感受，幸福其实就在身边。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">耗尽所有期待，风止意也平。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">无论未来的路有多么漫长和艰难，只要心中有光，就能照亮前行的每一步。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">人生就像一杯茶，初尝或许苦涩，但细细品味，便能感受到其中的甘甜与清香。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">梦想如同夜空中最亮的星，虽远必达，引领我们穿越黑暗，找寻心中的光明。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">每个人的生命故事中，都有那么几个章节，让人难以忘怀，成为永恒的回忆。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">岁月可以带走青春的容颜，但带不走内心的热忱与对生活的热爱。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">每一天醒来，都是宇宙给予的新礼物，让我们带着感恩的心，去拥抱每一个可能<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">生活的美好，往往藏在细微之处，一颗感恩的心，足以让平凡变得非凡。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">每一次呼吸，都是与世界的温柔对话，提醒我们要珍惜这份生命的奇迹。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">每一个夜晚的结束，都是新希望的开始，让我们带着梦想，迎接每一个黎明。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">人生如戏，我们都是自己故事的主角，用心演绎，才能收获属于自己的精彩。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">每一次的放手，都是为了更好的拥有，让我们学会放下，迎接更加美好的未来。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">岁月或许会改变我们的容颜，但那份对生活的热爱与追求，却会愈发坚定。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">渐渐喜欢上了现在的生活没有惊喜，也没有意外。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">梦想是心灵的指南针，无论身处何方，都能指引我们找到回家的路。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">真正的朋友，是在你需要时伸出援手，无需多言，一个眼神便能读懂彼此的心。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">有时候，放慢脚步，才能更好地欣赏沿途的风景，感受生活的真谛。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">心灵是一片广袤的田野，播种善良与希望，便能收获幸福与喜悦。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">真正的强大，不是从不跌倒，而是在每次跌倒后都能勇敢地站起来，继续前行。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">漫漫征途，岁月因青春慨然以赴而更加静好，世间因少年挺身向前而更加瑰丽。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">人生就像一场旅行，重要的不是目的地，而是沿途的风景以及看风景的心情。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">岁月是一本厚重的书，记录着我们的成长与变迁，也教会我们珍惜与感恩。<br></code></pre></td></tr></table></figure>

<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs">不知道少了什么感觉，没有以前快乐。<br></code></pre></td></tr></table></figure>

<p>晚八点钟前，总算整理完毕，文章页面封面图，去掉插图及心灵寄语。</p>
<h1 id="微图册"><a href="#微图册" class="headerlink" title="微图册"></a>微图册</h1><blockquote>
<p>2025 年 6 月 5 日</p>
</blockquote>
<p><a target="_blank" rel="noopener" href="https://wtuce.com/">免费制作电子图册-相册分享展示平台-微图册 (wtuce.com)</a></p>
<p><img src="http://blog.memory-life.xyz/image-20250605233222633.png" alt="image-20250605233222633"></p>
<p>像这样的云服务还是挺多的，部分小程序也提供这样的功能，不过就拿这个网站来说，免费额度仅有 200MB，要花钱的服务还是不太值当的。</p>
<h1 id="Memos"><a href="#Memos" class="headerlink" title="Memos"></a>Memos</h1><blockquote>
<p>2025 年 6 月 28 日</p>
</blockquote>
<p><a target="_blank" rel="noopener" href="https://juejin.cn/post/7520471519417499689">自建 Memos 服务：碎片化笔记 + 博客说说栏，一栈双用 Memos 是一款轻量的自托管的备忘录中心。你可以把它当作个 - 掘金 (juejin.cn)</a></p>
<p><a target="_blank" rel="noopener" href="https://juejin.cn/post/7270155117705576504?searchId=202506281636511348CAB6031DFD725E2A">17.8k Star!开源且支持私有化部署的碎片化知识卡片管理工具-Memos 应用简览 主要特性 开源且永久免费：Mem - 掘金 (juejin.cn)</a></p>
<p><a target="_blank" rel="noopener" href="https://www.mintimate.cn/Memos/">心猿意马 - 雨月空间站 (mintimate.cn)</a></p>
<p>用一张照片来代表今天。</p>
<blockquote>
<p>2025 年 6 月 30 日</p>
</blockquote>
<p><a target="_blank" rel="noopener" href="https://www.usememos.com/blog">Blog - Memos (usememos.com)</a></p>
<p><a target="_blank" rel="noopener" href="http://47.93.135.62:5230/explore">Memos</a></p>
<blockquote>
<p>2025 年 7 月 21 日</p>
</blockquote>
<p><a target="_blank" rel="noopener" href="https://www.usememos.com/changelog/0-25-0">Release v0.25.0 - Memos</a></p>
<p>跟那位老哥说的完全一致，这项服务每隔一段时间都会出现破坏性更新，五天前新版本出现后融入 Hexo 直接失败，怪不得最近这段时间怎么都调整不好。</p>
<p>明天再搞，得重新拉取最新镜像重新部署才行。</p>
<p><a target="_blank" rel="noopener" href="https://github.com/usememos/memos/releases/tag/v0.25.0">Release v0.25.0 · usememos/memos · GitHub</a></p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">docker images  <br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">docker pull usememos/memos<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash"><span class="hljs-built_in">cd</span> /dockerData/memos<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">docker stop fffdc938fd5b<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">docker compose pull<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">docker compose up -d<br></code></pre></td></tr></table></figure>

<p>绝了，拉取最新版本后仍旧没法获取图文，今下午本地部署 Hexo 后还能正常获取，现在也不能正常连接了。</p>
<p>又出问题：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><code class="hljs bash">[root@iZ2zehqnajgv7sc3i778n0Z memos]<span class="hljs-comment"># docker compose up -d</span><br>[+] Running 1/1<br> ✘ memos Error Get <span class="hljs-string">&quot;https://registry-1.docker.io/v2/&quot;</span>: net/http: request canceled <span class="hljs-keyword">while</span> waiting <span class="hljs-keyword">for</span> connection (Client.Timeout exceeded <span class="hljs-keyword">while</span> awaiting headers)                                  18.0s <br>Error response from daemon: Get <span class="hljs-string">&quot;https://registry-1.docker.io/v2/&quot;</span>: net/http: request canceled <span class="hljs-keyword">while</span> waiting <span class="hljs-keyword">for</span> connection (Client.Timeout exceeded <span class="hljs-keyword">while</span> awaiting headers)<br>[root@iZ2zehqnajgv7sc3i778n0Z memos]<span class="hljs-comment">#</span><br></code></pre></td></tr></table></figure>

<p>被忽悠了。</p>
<p>新版本改动没有涉及到请求API方面，不会影响已部署的 Memos 服务，除非停止服务后拉取最新版本 Memos:v0.25.0。</p>
<p>在 docker-compose.yml 文件中指定 Memos 原 v0.24.3 版本再部署，解决了这个问题。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><code class="hljs bash">services:<br>  memos:<br>    image: usememos/memos:0.24<br>    container_name: memos<br>    restart: unless-stopped<br>    ports:<br>      - <span class="hljs-string">&quot;5230:5230&quot;</span><br>    volumes:<br>      - /dockerData/memos/data:/var/opt/memos<br>    environment:<br>      - MEMOS_MODE=prod<br>      - MEMOS_PORT=5230<br></code></pre></td></tr></table></figure>

<p>一直困扰我的问题总算出现了，跨域问题。</p>
<p><img src="http://blog.memory-life.xyz/image-20250721224011530.png" alt="image-20250721224011530"></p>
<p>以下原本是 v0.22 版本后支持的解决跨域问题方案，同理可以搭建配置 Nginx 解决。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br></pre></td><td class="code"><pre><code class="hljs bash">services:<br>  memos:<br>    image: usememos/memos:0.24<br>    container_name: memos<br>    restart: unless-stopped<br>    ports:<br>      - <span class="hljs-string">&quot;5230:5230&quot;</span><br>    volumes:<br>      - /dockerData/memos/data:/var/opt/memos<br>    environment:<br>      - MEMOS_MODE=prod<br>      - MEMOS_PORT=5230<br>    <span class="hljs-built_in">command</span>: <br>      - <span class="hljs-string">&quot;--cors-domain=http://47.93.135.62:5230,https://deng-2022.atomgit.net/blog/Memos/&quot;</span><br></code></pre></td></tr></table></figure>

<p>不过我猛然意识到 Memos 服务站点协议为 http，而不知何时访问个人博客站点时将其协议改为了 https，协议不同从而导致了跨域问题。</p>
<p>疏忽了，不过好在问题顺利解决。</p>
<figure class="highlight angelscript"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs angelscript">Memory	<span class="hljs-symbol">Dw990831@</span><br></code></pre></td></tr></table></figure>

<figure class="highlight angelscript"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs angelscript">Cloud	<span class="hljs-symbol">Dw990831@</span><br></code></pre></td></tr></table></figure>

<figure class="highlight angelscript"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs angelscript">Wish	<span class="hljs-symbol">Dw990831@</span><br></code></pre></td></tr></table></figure>

<h2 id="部署"><a href="#部署" class="headerlink" title="部署"></a>部署</h2><blockquote>
<p>2025 年 6 月 30 日</p>
</blockquote>
<figure class="highlight css"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs css">ICP备案（互联网内容提供商备案）详解​​<br>ICP备案（Internet <span class="hljs-attribute">Content</span> Provider备案）是中国大陆对网站或互联网服务进行合法化管理的重要制度，由​​国家工业和信息化部（MIIT）​​监管，所有在中国大陆境内提供服务的网站或服务器必须完成备案，否则可能被关停或屏蔽访问。<br></code></pre></td></tr></table></figure>

<p>今天上午十点半，购买了新的云服务器，提交域名备案初审。</p>
<p><img src="http://blog.memory-life.xyz/image-20250630102839185.png" alt="image-20250630102839185"></p>
<p><a target="_blank" rel="noopener" href="https://help.aliyun.com/zh/icp-filing/basic-icp-service/user-guide/sms-check?spm=5176.62f6de69.icp_beian.7.387479feiC7qFE">备案短信核验_备案(Filing Service)-阿里云帮助中心 (aliyun.com)</a></p>
<p><a target="_blank" rel="noopener" href="https://www.alibabacloud.com/help/zh/ecs/use-cases/install-and-use-docker">安装 Docker - 云服务器 ECS - 阿里云 (alibabacloud.com)</a></p>
<p>按这个方法安装 Docker。</p>
<p><strong>安装 Docker。</strong></p>
<p>安装 Docker，执行以下命令安装 Docker 社区版本，通过查看 Docker 版本命令，验证 Docker 是否安装成功。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><code class="hljs bash"><span class="hljs-comment">#添加Docker软件包源</span><br>sudo wget -O /etc/yum.repos.d/docker-ce.repo http://mirrors.cloud.aliyuncs.com/docker-ce/linux/centos/docker-ce.repo<br>sudo sed -i <span class="hljs-string">&#x27;s|https://mirrors.aliyun.com|http://mirrors.cloud.aliyuncs.com|g&#x27;</span> /etc/yum.repos.d/docker-ce.repo<br><span class="hljs-comment">#Alibaba Cloud Linux3专用的dnf源兼容插件</span><br>sudo dnf -y install dnf-plugin-releasever-adapter --repo alinux3-plus<br><span class="hljs-comment">#安装Docker社区版本，容器运行时containerd.io，以及Docker构建和Compose插件</span><br>sudo dnf -y install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin<br><span class="hljs-comment">#启动Docker</span><br>sudo systemctl start docker<br><span class="hljs-comment">#设置Docker守护进程在系统启动时自动启动</span><br>sudo systemctl <span class="hljs-built_in">enable</span> docker<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">sudo docker -v<br></code></pre></td></tr></table></figure>

<p>创建简单 Web 程序镜像，构建 Web 程序镜像，启动 Web 程序镜像的容器，并且命名容器名称为<code>hello-world</code>。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><code class="hljs bash"><span class="hljs-comment">#拉取Nginx镜像</span><br>sudo docker pull nginx:latest<br><span class="hljs-comment">#创建Dockerfile设置Nginx作为基础镜像，并在Web服务器的根目录创建一个显示Hello World!的index.html文件。</span><br>sudo <span class="hljs-built_in">tee</span> Dockerfile &lt;&lt;-<span class="hljs-string">&#x27;EOF&#x27;</span><br>FROM nginx:latest<br>RUN <span class="hljs-built_in">echo</span> <span class="hljs-string">&#x27;Hello World!&#x27;</span> &gt; /usr/share/nginx/html/index.html<br>EOF<br><span class="hljs-comment">#构建镜像，镜像名称为hello-world</span><br>sudo docker build . -t hello-world:latest<br></code></pre></td></tr></table></figure>

<p>不过这里第一步拉取 Nginx 镜像就失败了，得配置 Docker 镜像加速器。</p>
<p>登录阿里云控制台，进入 <strong>容器镜像服务 &gt; 镜像加速器</strong>，获取专属加速地址（如 <code>https://&lt;your-id&gt;.mirror.aliyuncs.com</code>）。</p>
<p><a target="_blank" rel="noopener" href="https://cr.console.aliyun.com/cn-beijing/instances">容器镜像服务 ACR 控制台 (aliyun.com)</a></p>
<figure class="highlight awk"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs awk">https:<span class="hljs-regexp">//</span><span class="hljs-number">0</span>i6jgqxx.mirror.aliyuncs.com<br></code></pre></td></tr></table></figure>

<p>修改 Docker 配置。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><code class="hljs bash">sudo <span class="hljs-built_in">mkdir</span> -p /etc/docker<br>sudo <span class="hljs-built_in">tee</span> /etc/docker/daemon.json &lt;&lt;-<span class="hljs-string">&#x27;EOF&#x27;</span><br>&#123;<br>  <span class="hljs-string">&quot;registry-mirrors&quot;</span>: [<span class="hljs-string">&quot;https://0i6jgqxx.mirror.aliyuncs.com&quot;</span>]<br>&#125;<br>EOF<br>sudo systemctl daemon-reload<br>sudo systemctl restart docker<br></code></pre></td></tr></table></figure>

<p>镜像源修改成功，直接拉取 Nginx 镜像，一切顺利。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><code class="hljs bash">[root@iZ2zehqnajgv7sc3i778n0Z ~]<span class="hljs-comment"># sudo docker pull nginx:latest</span><br>latest: Pulling from library/nginx<br>a2abf6c4d29d: Pull complete<br>a9edb18cadd1: Pull complete<br>589b7251471a: Pull complete<br>186b1aaa4aa6: Pull complete<br>b4df32aa5a72: Pull complete<br>a0bcbecc962e: Pull complete<br>Digest: sha256:0d17b565c37bcbd895e9d92315a05c1c3c9a29f762b011a10c54a66cd53c9b31<br>Status: Downloaded newer image <span class="hljs-keyword">for</span> nginx:latest<br>docker.io/library/nginx:latest<br></code></pre></td></tr></table></figure>

<p>我记得今年年初也有过解决 Docker 拉取镜像失败的问题，同样是修改镜像源，操作基本相同，参考以下文章。</p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/m0_51492817/article/details/140332408">Docker 修改国内镜像源_docker 更换国内镜像源-CSDN 博客</a></p>
<p>这篇写得很详细了：<a target="_blank" rel="noopener" href="https://blog.51cto.com/u_16213434/11776091">docker 切换国内镜像源_mob64ca12f10f72 的技术博客_51CTO 博客</a></p>
<p>继续之前的操作，构建 Web 程序镜像。</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><code class="hljs shell"><span class="hljs-meta prompt_">#</span><span class="language-bash">拉取Nginx镜像</span><br>sudo docker pull nginx:latest<br><span class="hljs-meta prompt_">#</span><span class="language-bash">创建Dockerfile设置Nginx作为基础镜像，并在Web服务器的根目录创建一个显示Hello World!的index.html文件。</span><br>sudo tee Dockerfile &lt;&lt;-&#x27;EOF&#x27;<br>FROM nginx:latest<br>RUN echo &#x27;Hello World!&#x27; &gt; /usr/share/nginx/html/index.html<br>EOF<br><span class="hljs-meta prompt_">#</span><span class="language-bash">构建镜像，镜像名称为hello-world</span><br>sudo docker build . -t hello-world:latest<br></code></pre></td></tr></table></figure>

<p>启动 Web 程序镜像的容器，并且命名容器名称为<code>hello-world</code>。</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs shell">sudo docker run -d -p 80:80 --name hello-world hello-world:latest<br></code></pre></td></tr></table></figure>

<p>执行<code>curl http://localhost</code>命令，验证 Web 程序是否正确显示<code>Hello World!</code>。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs bash">[root@iZ2zehqnajgv7sc3i778n0Z ~]<span class="hljs-comment"># curl http://localhost</span><br>Hello World!<br></code></pre></td></tr></table></figure>

<p><strong>安装 Docker Compose</strong></p>
<p>如果您参考以上方式安装 Docker，那么 Compose 插件将默认安装到您的实例中。您可以通过如下命令查看。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">sudo docker compose version<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs bash">[root@iZ2zehqnajgv7sc3i778n0Z ~]<span class="hljs-comment"># sudo docker compose version</span><br>Docker Compose version v2.27.0<br></code></pre></td></tr></table></figure>

<p>预期输出（vN.N.N 代表 Compose 的版本）：<code>Docker Compose version vN.N.N</code>。</p>
<p>如果您的 Compose 插件未成功安装或您需要使用 Compose 独立版（<code>docker-compose</code>）可参考下面内容。</p>
<p><a target="_blank" rel="noopener" href="https://www.alibabacloud.com/help/zh/ecs/use-cases/install-and-use-docker#2cc5f8feac9ng">安装 Docker - 云服务器 ECS - 阿里云 (alibabacloud.com)</a></p>
<p>这些内容参考官方文档就可以了，最后还是要使用查看 Compose 版本命令，验证 Compose 是否安装成功。</p>
<p><strong>使用 Docker Compose 部署应用</strong></p>
<p>以下是创建基于 WordPress 镜像的 Web 程序。</p>
<p>创建 Compose 编排文件并启动 WordPress 服务。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br></pre></td><td class="code"><pre><code class="hljs bash"><span class="hljs-comment">#创建编排文件，添加Mysql与WordPress</span><br>sudo <span class="hljs-built_in">tee</span> docker-compose.yaml &lt;&lt;-<span class="hljs-string">&#x27;EOF&#x27;</span><br>version: <span class="hljs-string">&#x27;3.1&#x27;</span><br><br>services:<br>  wordpress:<br>    image: wordpress<br>    restart: always<br>    ports:<br>      - <span class="hljs-string">&quot;80:80&quot;</span><br>    environment:<br>      <span class="hljs-comment">#数据库地址</span><br>      WORDPRESS_DB_HOST: db<br>      <span class="hljs-comment">#数据库用户名</span><br>      WORDPRESS_DB_USER: wordpress<br>      <span class="hljs-comment">#数据库密码</span><br>      WORDPRESS_DB_PASSWORD: 123456<br>      <span class="hljs-comment">#数据库名称</span><br>      WORDPRESS_DB_NAME: wordpress<br>    volumes:<br>      - wordpress:/var/www/html<br><br>  db:<br>    image: mysql:5.7<br>    restart: always<br>    ports:<br>      - <span class="hljs-string">&quot;3306:3306&quot;</span><br>    environment:<br>      <span class="hljs-comment">#数据库名称</span><br>      MYSQL_DATABASE: wordpress<br>      <span class="hljs-comment">#数据库用户名</span><br>      MYSQL_USER: wordpress<br>      <span class="hljs-comment">#数据库密码</span><br>      MYSQL_PASSWORD: 123456<br>      <span class="hljs-comment">#数据库ROOT用户密码</span><br>      MYSQL_RANDOM_ROOT_PASSWORD: <span class="hljs-string">&#x27;1&#x27;</span><br>    volumes:<br>      - db:/var/lib/mysql<br><br>volumes:<br>  wordpress:<br>  db:<br>EOF<br><span class="hljs-comment">#启动服务容器。</span><br>sudo <span class="hljs-built_in">env</span> <span class="hljs-string">&quot;PATH=<span class="hljs-variable">$PATH</span>&quot;</span> docker compose up -d<br></code></pre></td></tr></table></figure>

<p>这里启动服务器竟然有报错了，估计是服务端口冲突了，刚才在 80 端口启动了 Hello World 测试服务。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><code class="hljs bash">[root@iZ2zehqnajgv7sc3i778n0Z ~]<span class="hljs-comment"># docker ps -a</span><br>CONTAINER ID   IMAGE                COMMAND                   CREATED              STATUS              PORTS                                                  NAMES<br>e9f71f7b68d5   wordpress            <span class="hljs-string">&quot;docker-entrypoint.s…&quot;</span>   About a minute ago   Created                                                                    root-wordpress-1<br>8c0aee8f6006   mysql:5.7            <span class="hljs-string">&quot;docker-entrypoint.s…&quot;</span>   About a minute ago   Up About a minute   0.0.0.0:3306-&gt;3306/tcp, :::3306-&gt;3306/tcp, 33060/tcp   root-db-1<br>e1b3d3f9f718   hello-world:latest   <span class="hljs-string">&quot;/docker-entrypoint.…&quot;</span>   11 minutes ago       Up 11 minutes       0.0.0.0:80-&gt;80/tcp, :::80-&gt;80/tcp                      hello-world<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">[root@iZ2zehqnajgv7sc3i778n0Z ~]<span class="hljs-comment"># docker stop e1b3d3f9f718</span><br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">[root@iZ2zehqnajgv7sc3i778n0Z ~]<span class="hljs-comment"># docker rm hello-world</span><br></code></pre></td></tr></table></figure>

<p><a target="_blank" rel="noopener" href="http://47.93.135.62/">Memory’s Blog – 又一个 WordPress 站点</a></p>
<p>成功部署了 WordPress 个人博客站点，提供了很多热门的免费主题，直接下载安装完成后即可使用，这个博客确实方便，还配备了专门的后台管理系统。</p>
<p>Memos 镜像</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs bash"><span class="hljs-comment"># 直接拉取镜像</span><br>sudo docker pull usememos/memos:latest<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><code class="hljs bash">sudo <span class="hljs-built_in">mkdir</span> -p /etc/docker<br>sudo <span class="hljs-built_in">tee</span> /etc/docker/daemon.json &lt;&lt;-<span class="hljs-string">&#x27;EOF&#x27;</span><br>&#123;<br>  <span class="hljs-string">&quot;registry-mirrors&quot;</span>: [<span class="hljs-string">&quot;https://0i6jgqxx.mirror.aliyuncs.com&quot;</span>]<br>&#125;<br>EOF<br>sudo systemctl daemon-reload<br>sudo systemctl restart docker<br></code></pre></td></tr></table></figure>

<p>一直显示拉取失败，阿里云镜像仓库没有同步 Memos 镜像吗。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs bash">[root@iZ2zehqnajgv7sc3i778n0Z docker]<span class="hljs-comment"># sudo docker pull usememos/memos:latest</span><br>Error response from daemon: Get <span class="hljs-string">&quot;https://registry-1.docker.io/v2/&quot;</span>: context deadline exceeded<br></code></pre></td></tr></table></figure>

<p>使用终极解决方案： <strong>直接使用 GitHub 源码构建（终极方案）</strong>，如果镜像源均不可用，可自行构建。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><code class="hljs bash"><span class="hljs-comment"># 克隆源码</span><br>git <span class="hljs-built_in">clone</span> https://github.com/usememos/memos.git<br><span class="hljs-built_in">cd</span> memos<br><br><span class="hljs-comment"># 构建镜像</span><br>docker build -t memos:latest .<br><br><span class="hljs-comment"># 运行容器</span><br>docker run -d --name memos -p 5230:5230 -v ~/.memos/:/var/opt/memos memos:latest<br></code></pre></td></tr></table></figure>

<p>在这之前，得先安装 git，执行安装，并验证安装。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">sudo yum install -y git<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">git --version<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><code class="hljs bash">完毕！<br>[root@iZ2zehqnajgv7sc3i778n0Z docker]<span class="hljs-comment"># git --version</span><br>git version 2.43.5<br></code></pre></td></tr></table></figure>

<p>。。。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><code class="hljs bash">[root@iZ2zehqnajgv7sc3i778n0Z docker]<span class="hljs-comment"># git clone https://github.com/usememos/memos.git</span><br>正克隆到 <span class="hljs-string">&#x27;memos&#x27;</span>...<br>致命错误：无法访问 <span class="hljs-string">&#x27;https://github.com/usememos/memos.git/&#x27;</span>：Failed to connect to github.com port 443: 连接超时<br></code></pre></td></tr></table></figure>

<p><a target="_blank" rel="noopener" href="https://github.com/usememos/memos">usememos/memos: A modern, open-source, self-hosted knowledge management and note-taking platform designed for privacy-conscious users and organizations. (github.com)</a></p>
<p>刚刚使用 SSH 协议替代 HTTPS 协议，在云服务器生成了密钥，并将公钥添加到了 GitHub，登录 GitHub → Settings → SSH and GPG keys → 添加公钥。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs bash">ssh-keygen -t ed25519 -C <span class="hljs-string">&quot;your_email@example.com&quot;</span><br><span class="hljs-built_in">cat</span> ~/.ssh/id_ed25519.pub  <span class="hljs-comment"># 复制公钥</span><br></code></pre></td></tr></table></figure>

<p>但最终测试链接还是超时失败了。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">ssh -T git@github.com<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs bash">[root@iZ2zehqnajgv7sc3i778n0Z docker]<span class="hljs-comment"># ssh -T git@github.com</span><br>ssh: connect to host github.com port 22: Connection timed out<br></code></pre></td></tr></table></figure>

<p>索性在 Github Fork Memos 镜像仓库，再导入 Gitee 仓库，最后在 Gitee 添加服务器公钥实现认证，总该能成功拉取官方镜像源吧。</p>
<p>拉取 Gitee 镜像代码仓库。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">git <span class="hljs-built_in">clone</span> git@gitee.com:deng-2022/memos.git<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br></pre></td><td class="code"><pre><code class="hljs bash">[root@iZ2zehqnajgv7sc3i778n0Z docker]<span class="hljs-comment"># git clone git@gitee.com:deng-2022/memos.git</span><br>正克隆到 <span class="hljs-string">&#x27;memos&#x27;</span>...<br>The authenticity of host <span class="hljs-string">&#x27;gitee.com (180.76.199.13)&#x27;</span> can<span class="hljs-string">&#x27;t be established.</span><br><span class="hljs-string">ECDSA key fingerprint is SHA256:FQGC9Kn/eye1W8icdBgrQp+KkGYoFgbVr17bmjey0Wc.</span><br><span class="hljs-string">Are you sure you want to continue connecting (yes/no/[fingerprint])? y</span><br><span class="hljs-string">Please type &#x27;</span><span class="hljs-built_in">yes</span><span class="hljs-string">&#x27;, &#x27;</span>no<span class="hljs-string">&#x27; or the fingerprint: yes</span><br><span class="hljs-string">Warning: Permanently added &#x27;</span>gitee.com,180.76.199.13<span class="hljs-string">&#x27; (ECDSA) to the list of known hosts.</span><br><span class="hljs-string">remote: Enumerating objects: 42879, done.</span><br><span class="hljs-string">remote: Counting objects: 100% (42879/42879), done.</span><br><span class="hljs-string">remote: Compressing objects: 100% (9910/9910), done.</span><br><span class="hljs-string">remote: Total 42879 (delta 31416), reused 42879 (delta 31416), pack-reused 0 (from 0)</span><br><span class="hljs-string">接收对象中: 100% (42879/42879), 35.67 MiB | 9.95 MiB/s, 完成.</span><br><span class="hljs-string">处理 delta 中: 100% (31416/31416), 完成.</span><br></code></pre></td></tr></table></figure>

<p>继续未完成的操作，克隆源码成功后，自行构建镜像。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><code class="hljs bash"><span class="hljs-comment"># 克隆源码</span><br>git <span class="hljs-built_in">clone</span> git@gitee.com:deng-2022/memos.git<br><span class="hljs-built_in">cd</span> memos/scripts<br><br><span class="hljs-comment"># 构建镜像</span><br>docker build -t memos:latest .<br><br><span class="hljs-comment"># 运行容器</span><br>docker run -d --name memos -p 5230:5230 -v ~/.memos/:/var/opt/memos memos:latest<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs bash">sudo systemctl daemon-reload<br>sudo systemctl restart docker<br></code></pre></td></tr></table></figure>

<p>白忙活一场，到头来还是需要拉取基础镜像，镜像源修改还是没有生效，拉个镜像就连接超时。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs bash">docker pull alpine:latest<br>docker pull golang:1.24-alpine<br></code></pre></td></tr></table></figure>

<figure class="highlight excel"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs excel">=&gt; [internal] load metadata for docker.io/library/gola<span class="hljs-symbol">ng:1</span>.<span class="hljs-number">24</span>-alpine<br></code></pre></td></tr></table></figure>

<p>问题还偏偏出现在这个破镜像上，手动下载吧。</p>
<hr>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/weixin_40612128/article/details/147478581">第八阶段【DBA 自动化】06：CentOS 安装 go 环境_golang 1.24.2 下载-CSDN 博客</a></p>
<figure class="highlight awk"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs awk">wget https:<span class="hljs-regexp">//g</span>olang.google.cn<span class="hljs-regexp">/dl/g</span>o1.<span class="hljs-number">24.2</span>.linux-amd64.tar.gz<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><code class="hljs bash"><span class="hljs-comment"># 解压 Go 到 /usr/local</span><br>sudo tar -C /usr/local -xzf go1.24.2.linux-amd64.tar.gz<br><br><span class="hljs-comment"># 添加环境变量</span><br><span class="hljs-built_in">echo</span> <span class="hljs-string">&#x27;export PATH=$PATH:/usr/local/go/bin&#x27;</span> &gt;&gt; ~/.bashrc<br><span class="hljs-built_in">source</span> ~/.bashrc<br><br><span class="hljs-comment"># 验证安装</span><br>go version<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><code class="hljs bash">[root@iZ2zehqnajgv7sc3i778n0Z scripts]<span class="hljs-comment"># sudo tar -C /usr/local -xzf go1.24.2.linux-amd64.tar.gz</span><br>[root@iZ2zehqnajgv7sc3i778n0Z scripts]<span class="hljs-comment"># echo &#x27;export PATH=$PATH:/usr/local/go/bin&#x27; &gt;&gt; ~/.bashrc</span><br>[root@iZ2zehqnajgv7sc3i778n0Z scripts]<span class="hljs-comment"># source ~/.bashrc</span><br>[root@iZ2zehqnajgv7sc3i778n0Z scripts]<span class="hljs-comment"># go version</span><br>go version go1.24.2 linux/amd64<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br></pre></td><td class="code"><pre><code class="hljs bash">FROM golang:1.24-alpine AS backend<br>WORKDIR /backend-build<br>COPY go.mod go.sum ./<br>RUN go mod download<br>COPY . .<br><span class="hljs-comment"># Please build frontend first, so that the static files are available.</span><br><span class="hljs-comment"># Refer to `pnpm release` in package.json for the build command.</span><br>RUN --mount=<span class="hljs-built_in">type</span>=cache,target=/go/pkg/mod \<br>    --mount=<span class="hljs-built_in">type</span>=cache,target=/root/.cache/go-build \<br>    go build -ldflags=<span class="hljs-string">&quot;-s -w&quot;</span> -o memos ./bin/memos/main.go<br><br><span class="hljs-comment"># Make workspace with above generated files.</span><br>FROM alpine:latest AS monolithic<br>WORKDIR /usr/local/memos<br><br>RUN apk add --no-cache tzdata<br>ENV TZ=<span class="hljs-string">&quot;UTC&quot;</span><br><br>COPY --from=backend /backend-build/memos /usr/local/memos/<br>COPY ./scripts/entrypoint.sh /usr/local/memos/<br><br>EXPOSE 5230<br><br><span class="hljs-comment"># Directory to store the data, which can be referenced as the mounting point.</span><br>RUN <span class="hljs-built_in">mkdir</span> -p /var/opt/memos<br>VOLUME /var/opt/memos<br><br>ENV MEMOS_MODE=<span class="hljs-string">&quot;prod&quot;</span><br>ENV MEMOS_PORT=<span class="hljs-string">&quot;5230&quot;</span><br><br>ENTRYPOINT [<span class="hljs-string">&quot;./entrypoint.sh&quot;</span>, <span class="hljs-string">&quot;./memos&quot;</span>]<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref 5e8c89a3-1927-49ae-bf7e-1543f565993f::reae01uls78mmnhox88ewtmd5: <span class="hljs-string">&quot;/scripts/entrypoint.sh&quot;</span>: not found<br></code></pre></td></tr></table></figure>

<p>不过是徒劳。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><code class="hljs bash">FROM alpine AS backend<br>WORKDIR /backend-build<br>RUN sed -i <span class="hljs-string">&#x27;s/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g&#x27;</span> /etc/apk/repositories<br><span class="hljs-comment"># 安装 Go（需自行处理版本和依赖）</span><br>RUN apk add --no-cache go gcc musl-dev  <span class="hljs-comment"># 安装 Go 和编译工具</span><br>COPY ./go.mod ./go.sum ./<br>RUN go mod download<br>COPY . .<br></code></pre></td></tr></table></figure>

<p>还是解决镜像源问题吧，一劳永逸，浪费了两小时时间，没有丝毫进展。</p>
<hr>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br></pre></td><td class="code"><pre><code class="hljs bash">[root@iZ2zehqnajgv7sc3i778n0Z docker]<span class="hljs-comment"># systemctl status docker.service</span><br>● docker.service - Docker Application Container Engine<br>   Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)<br>   Active: failed (Result: exit-code) since Mon 2025-06-30 13:36:11 CST; 36s ago<br>     Docs: https://docs.docker.com<br>  Process: 476829 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)<br> Main PID: 476829 (code=exited, status=1/FAILURE)<br><br>6月 30 13:36:09 iZ2zehqnajgv7sc3i778n0Z systemd[1]: Failed to start Docker Application Container Engine.<br>6月 30 13:36:11 iZ2zehqnajgv7sc3i778n0Z systemd[1]: docker.service: Service RestartSec=2s expired, scheduling restart.<br>6月 30 13:36:11 iZ2zehqnajgv7sc3i778n0Z systemd[1]: docker.service: Scheduled restart job, restart counter is at 3.<br>6月 30 13:36:11 iZ2zehqnajgv7sc3i778n0Z systemd[1]: Stopped Docker Application Container Engine.<br>6月 30 13:36:11 iZ2zehqnajgv7sc3i778n0Z systemd[1]: docker.service: Start request repeated too quickly.<br>6月 30 13:36:11 iZ2zehqnajgv7sc3i778n0Z systemd[1]: docker.service: Failed with result <span class="hljs-string">&#x27;exit-code&#x27;</span>.<br>6月 30 13:36:11 iZ2zehqnajgv7sc3i778n0Z systemd[1]: Failed to start Docker Application Container Engine.<br>6月 30 13:36:39 iZ2zehqnajgv7sc3i778n0Z systemd[1]: docker.service: Start request repeated too quickly.<br>6月 30 13:36:39 iZ2zehqnajgv7sc3i778n0Z systemd[1]: docker.service: Failed with result <span class="hljs-string">&#x27;exit-code&#x27;</span>.<br></code></pre></td></tr></table></figure>

<p>docker 服务都垮了。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><code class="hljs bash">&#123;<br>  <span class="hljs-string">&quot;registry-mirrors&quot;</span>: [<span class="hljs-string">&quot;https://&lt;你的ID&gt;.mirror.aliyuncs.com&quot;</span>],<br>  <span class="hljs-string">&quot;registry-mirrors-only&quot;</span>: <span class="hljs-literal">true</span>  // 强制只从镜像加速器拉取<br>&#125;<br></code></pre></td></tr></table></figure>

<p>混账 AI 糊弄我，这文件就不能这么写。</p>
<p><a target="_blank" rel="noopener" href="https://developer.aliyun.com/article/1613645">Docker 安装及镜像源修改-阿里云开发者社区 (aliyun.com)</a></p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs bash">sudo systemctl daemon-reload<br>sudo systemctl restart docker<br></code></pre></td></tr></table></figure>

<p><a target="_blank" rel="noopener" href="https://developer.aliyun.com/article/1529158">docker 换国内镜像源，docker 换源-阿里云开发者社区 (aliyun.com)</a></p>
<p>折腾了一上午，快到中午两点整总算弄好了。</p>
<p>换镜像源就得按照这篇文章里写的，把以下国内镜像源挨个配置上去，这样直接执行拉取镜像就成功了。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><code class="hljs bash"><span class="hljs-built_in">echo</span> &gt;/etc/docker/daemon.json<br><span class="hljs-built_in">cat</span>&gt;/etc/docker/daemon.json &lt;&lt;<span class="hljs-string">END</span><br><span class="hljs-string">&#123;</span><br><span class="hljs-string">  &quot;registry-mirrors&quot;: [</span><br><span class="hljs-string">    &quot;https://hub-mirror.c.163.com&quot;,</span><br><span class="hljs-string">    &quot;https://ustc-edu-cn.mirror.aliyuncs.com&quot;,</span><br><span class="hljs-string">    &quot;https://ghcr.io&quot;,</span><br><span class="hljs-string">    &quot;https://mirror.baidubce.com&quot;</span><br><span class="hljs-string">  ]</span><br><span class="hljs-string">&#125;</span><br><span class="hljs-string">END</span><br>systemctl restart docker<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">docker pull usememos/memos<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><code class="hljs bash">[root@iZ2zehqnajgv7sc3i778n0Z ~]<span class="hljs-comment"># docker pull usememos/memos</span><br>Using default tag: latest<br>latest: Pulling from usememos/memos<br>1f3e46996e29: Pull complete<br>3c6dabcaff14: Pull complete<br>066876855edf: Pull complete<br>12e6e904a51b: Pull complete<br>acc8f9c158a7: Pull complete<br>0ecac9b063ba: Pull complete<br>Digest: sha256:4723d86e6797fd629f1f2ff7afd4e37e669df7318f00de31c7ff9acf1fe9db7f<br>Status: Downloaded newer image <span class="hljs-keyword">for</span> usememos/memos:latest<br>docker.io/usememos/memos:latest<br></code></pre></td></tr></table></figure>

<p><a target="_blank" rel="noopener" href="https://juejin.cn/post/7520471519417499689">自建 Memos 服务：碎片化笔记 + 博客说说栏，一栈双用 Memos 是一款轻量的自托管的备忘录中心。你可以把它当作个 - 掘金 (juejin.cn)</a></p>
<p>直接用 docker compose 启动。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><code class="hljs bash"><span class="hljs-comment"># 创建合适的数据持久化目录</span><br><span class="hljs-built_in">mkdir</span> -p /dockerData/memos<br><span class="hljs-comment"># 进入目录</span><br><span class="hljs-built_in">cd</span> /dockerData/memos<br><span class="hljs-comment"># 创建 docker-compose.yml</span><br><span class="hljs-built_in">touch</span> docker-compose.yml<br></code></pre></td></tr></table></figure>

<p>我的 docker-compose.yml 文件如下：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><code class="hljs bash">services:<br>  memos:<br>    image: usememos/memos:latest<br>    container_name: memos<br>    restart: unless-stopped<br>    ports:<br>      - <span class="hljs-string">&quot;5230:5230&quot;</span><br>    volumes:<br>      - /dockerData/memos/data:/var/opt/memos<br>    environment:<br>      - MEMOS_MODE=prod<br>      - MEMOS_PORT=5230<br></code></pre></td></tr></table></figure>

<p>最后，启动 memos：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><code class="hljs bash"><span class="hljs-comment"># 拉取镜像</span><br>docker compose pull<br><span class="hljs-comment"># 启动</span><br>docker compose up -d<br></code></pre></td></tr></table></figure>

<p>现在，访问 <a target="_blank" rel="noopener" href="http://47.93.135.62:5230/">Memos</a>（<a target="_blank" rel="noopener" href="http://47.93.135.62:5230/%EF%BC%89">http://47.93.135.62:5230/）</a> 即可，注册登录，就可以发表留言了，这个备忘录很好用。</p>
<h2 id="融入-Hexo"><a href="#融入-Hexo" class="headerlink" title="融入 Hexo"></a>融入 Hexo</h2><blockquote>
<p>2025 年 6 月 30 日</p>
</blockquote>
<p><a target="_blank" rel="noopener" href="https://github.com/Mintimate/memos-bb-time">Mintimate/memos-bb-time: A Hexo plugin that integrates Memos’ API to add a Twitter-like ‘moments’ (shuoshuo) feature to your Hexo blog (github.com)</a></p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><code class="hljs bash">&lt;script <span class="hljs-built_in">type</span>=<span class="hljs-string">&quot;text/javascript&quot;</span>&gt;<br>  var bbMemos = &#123;<br>    memos : <span class="hljs-string">&#x27;http://47.93.135.62:5230/&#x27;</span>, //修改为自己部署 Memos 的网址，末尾有 / 斜杠<br>    <span class="hljs-built_in">limit</span> : <span class="hljs-string">&#x27;10&#x27;</span>,//默认每次显示 10 条<br>    creatorId:<span class="hljs-string">&#x27;1&#x27;</span> ,//早期默认为 101 用户，新安装是 1； https://demo.usememos.com/u/101<br>    domId: <span class="hljs-string">&#x27;#bber&#x27;</span>,//默认为 bber<br>  &#125;<br>&lt;/script&gt;<br></code></pre></td></tr></table></figure>

<figure class="highlight sas"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs sas">- &#123; <span class="hljs-keyword">key</span>: <span class="hljs-string">&quot;说说&quot;</span>, <span class="hljs-keyword">link</span>: <span class="hljs-string">&quot;/Memos/&quot;</span>, icon: <span class="hljs-string">&quot;iconfont icon-comment &quot;</span> &#125;<br></code></pre></td></tr></table></figure>

<p><a target="_blank" rel="noopener" href="https://www.iconfont.cn/">iconfont-阿里巴巴矢量图标库</a></p>
<p>在 Hexo 博客中创建一个独立页面，通过 Memos API 展示说说内容。</p>
<p><strong>功能说明</strong></p>
<ul>
<li>创建独立说说页面，不依赖插件</li>
<li>通过 Memos API 获取最新内容</li>
<li>响应式设计，适配各种设备</li>
</ul>
<ol>
<li>创建新页面：</li>
</ol>
<p>下载 <code>source</code> 目录，将内部的文件全部复制到 Hexo 博客的 <code>source</code> 目录下。</p>
<ol>
<li>编辑生成的 <code>source/Memos/index.md</code> 文件：</li>
</ol>
<figure class="highlight markdown"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><code class="hljs markdown">var bbMemos = &#123;<br>memos : &#x27;&#x27;,//修改为自己部署 Memos 的网址，末尾有 / 斜杠<br>limit : &#x27;10&#x27;,//默认每次显示 10 条<br>creatorId:&#x27;1&#x27; ,//早期默认为 101 用户，新安装是 1； https://demo.usememos.com/u/101<br>domId: &#x27;#bber&#x27;,//默认为 bber<br>&#125;<br></code></pre></td></tr></table></figure>

<ol>
<li>编辑主题配置文件：</li>
</ol>
<p>编辑主题配置文件，添加导航内容。以 fluid 主题为例，编辑<code>_config.fluid.yml</code>内<code>menu</code>部分：</p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-attr">menu:</span><br>  <span class="hljs-bullet">-</span> &#123; <span class="hljs-attr">key:</span> <span class="hljs-string">&quot;home&quot;</span>, <span class="hljs-attr">link:</span> <span class="hljs-string">&quot;/&quot;</span>, <span class="hljs-attr">icon:</span> <span class="hljs-string">&quot;iconfont icon-home-fill&quot;</span> &#125;<br>  <span class="hljs-bullet">-</span> &#123; <span class="hljs-attr">key:</span> <span class="hljs-string">&quot;archive&quot;</span>, <span class="hljs-attr">link:</span> <span class="hljs-string">&quot;/archives/&quot;</span>, <span class="hljs-attr">icon:</span> <span class="hljs-string">&quot;iconfont icon-archive-fill&quot;</span> &#125;<br>  <span class="hljs-bullet">-</span> &#123;<br>      <span class="hljs-attr">key:</span> <span class="hljs-string">&quot;category&quot;</span>,<br>      <span class="hljs-attr">link:</span> <span class="hljs-string">&quot;/categories/&quot;</span>,<br>      <span class="hljs-attr">icon:</span> <span class="hljs-string">&quot;iconfont icon-category-fill&quot;</span>,<br>    &#125;<br>  <span class="hljs-bullet">-</span> &#123; <span class="hljs-attr">key:</span> <span class="hljs-string">&quot;tag&quot;</span>, <span class="hljs-attr">link:</span> <span class="hljs-string">&quot;/tags/&quot;</span>, <span class="hljs-attr">icon:</span> <span class="hljs-string">&quot;iconfont icon-tags-fill&quot;</span> &#125;<br>  <span class="hljs-bullet">-</span> &#123; <span class="hljs-attr">key:</span> <span class="hljs-string">&quot;links&quot;</span>, <span class="hljs-attr">link:</span> <span class="hljs-string">&quot;/links/&quot;</span>, <span class="hljs-attr">icon:</span> <span class="hljs-string">&quot;iconfont icon-link-fill&quot;</span> &#125;<br>  <span class="hljs-bullet">-</span> &#123; <span class="hljs-attr">key:</span> <span class="hljs-string">&quot;about&quot;</span>, <span class="hljs-attr">link:</span> <span class="hljs-string">&quot;/about/&quot;</span>, <span class="hljs-attr">icon:</span> <span class="hljs-string">&quot;iconfont icon-user-fill&quot;</span> &#125;<br>  <span class="hljs-bullet">-</span> &#123; <span class="hljs-attr">key:</span> <span class="hljs-string">&quot;意马&quot;</span>, <span class="hljs-attr">link:</span> <span class="hljs-string">&quot;/Memos/&quot;</span>, <span class="hljs-attr">icon:</span> <span class="hljs-string">&quot;iconfont iconbg-chat&quot;</span> &#125; <span class="hljs-comment"># 添加说说页面</span><br>  <span class="hljs-bullet">-</span> &#123;<br>      <span class="hljs-attr">key:</span> <span class="hljs-string">&quot;发现&quot;</span>,<br>      <span class="hljs-attr">icon:</span> <span class="hljs-string">&quot;iconfont iconnaicha&quot;</span>,<br>      <span class="hljs-attr">submenu:</span><br>        [<br>          &#123;<br>            <span class="hljs-attr">key:</span> <span class="hljs-string">&quot;哔哩哔哩&quot;</span>,<br>            <span class="hljs-attr">link:</span> <span class="hljs-string">&quot;https://space.bilibili.com/355567627&quot;</span>,<br>            <span class="hljs-attr">icon:</span> <span class="hljs-string">&quot;iconfont iconbilibili&quot;</span>,<br>          &#125;,<br>          &#123;<br>            <span class="hljs-attr">key:</span> <span class="hljs-string">&quot;Youtube&quot;</span>,<br>            <span class="hljs-attr">link:</span> <span class="hljs-string">&quot;https://www.youtube.com/@mintimate&quot;</span>,<br>            <span class="hljs-attr">icon:</span> <span class="hljs-string">&quot;iconfont iconyoutube&quot;</span>,<br>          &#125;,<br>          &#123;<br>            <span class="hljs-attr">key:</span> <span class="hljs-string">&quot;Github&quot;</span>,<br>            <span class="hljs-attr">link:</span> <span class="hljs-string">&quot;https://github.com/Mintimate&quot;</span>,<br>            <span class="hljs-attr">icon:</span> <span class="hljs-string">&quot;iconfont icongit&quot;</span>,<br>          &#125;,<br>        ],<br>    &#125;<br></code></pre></td></tr></table></figure>

<p>重启 Hexo 服务，访问 <code>http://localhost:4000/Memos/</code> 即可查看效果。</p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-meta">---</span><br><span class="hljs-comment">#---------------------------</span><br><span class="hljs-comment"># 音乐餐厅</span><br><span class="hljs-comment"># playlist Page</span><br><span class="hljs-comment">#</span><br><span class="hljs-comment"># 通过 hexo new page 命令创建的页面</span><br><span class="hljs-comment"># playlist Page through `hexo new page`</span><br><span class="hljs-comment">#---------------------------</span><br><span class="hljs-string">音乐:</span><br>  <span class="hljs-attr">banner_img:</span> <span class="hljs-string">/img/newBG/girl20250517.jpg</span><br>  <span class="hljs-attr">banner_img_height:</span> <span class="hljs-number">100</span><br>  <span class="hljs-attr">banner_mask_alpha:</span> <span class="hljs-number">0.3</span><br></code></pre></td></tr></table></figure>

<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-meta">---</span><br><span class="hljs-comment">#---------------------------</span><br><span class="hljs-comment"># 说说</span><br><span class="hljs-comment"># Custom Page</span><br><span class="hljs-comment">#</span><br><span class="hljs-comment"># 通过 hexo new page 命令创建的页面</span><br><span class="hljs-comment"># Custom Page through `hexo new page`</span><br><span class="hljs-comment">#---------------------------</span><br><span class="hljs-string">说说:</span><br>  <span class="hljs-attr">banner_img:</span> <span class="hljs-string">/img/newBG/bus20250517.jpg</span><br>  <span class="hljs-attr">banner_img_height:</span> <span class="hljs-number">100</span><br>  <span class="hljs-attr">banner_mask_alpha:</span> <span class="hljs-number">0.3</span><br></code></pre></td></tr></table></figure>

<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-bullet">-</span> &#123; <span class="hljs-attr">key:</span> <span class="hljs-string">&quot;音乐&quot;</span>, <span class="hljs-attr">link:</span> <span class="hljs-string">&quot;/playlist/&quot;</span>, <span class="hljs-attr">icon:</span> <span class="hljs-string">&quot;iconfont icon-music&quot;</span> &#125;<br><span class="hljs-bullet">-</span> &#123; <span class="hljs-attr">key:</span> <span class="hljs-string">&quot;说说&quot;</span>, <span class="hljs-attr">link:</span> <span class="hljs-string">&quot;/memos/&quot;</span>, <span class="hljs-attr">icon:</span> <span class="hljs-string">&quot;iconfont icon-comment &quot;</span> &#125;<br></code></pre></td></tr></table></figure>

<p>这样自定义页面完成以后，个人博客“说说”栏目页新增完毕。</p>
<p>成功将 Memos 备忘录功能融入 Hexo。</p>
<p><a target="_blank" rel="noopener" href="http://47.93.135.62:5230/">Memos</a></p>
<h1 id="文章分类"><a href="#文章分类" class="headerlink" title="文章分类"></a>文章分类</h1><blockquote>
<p>2025 年 7 月 6 日</p>
</blockquote>
<p>今晚彻底翻新下文章分类，现在的文章所属分类就像标签一样，本不应该搞得这么杂乱，优化完毕后将来检索某领域下的文章会更高效。</p>
<p>分类：</p>
<p>代码锋芒，部署之道，架构探微，工善其事，算法物语，项目志录。</p>
<p>人间片刻，旧梦轻拾，灵感工坊，职路星火。</p>
<p>晚十一点半，总算完工了博客文章分类。</p>
<h1 id="应用打包"><a href="#应用打包" class="headerlink" title="应用打包"></a>应用打包</h1><blockquote>
<p>2025 年 7 月 21 日</p>
</blockquote>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/bobozai86/article/details/78760120">web应用打包成桌面可执行程序_网站打包成应用-CSDN博客</a></p>
<p><a target="_blank" rel="noopener" href="https://zhuanlan.zhihu.com/p/25519769798">打包网络应用地址成Windows-可运行程序–Nativefier 打包 - 知乎</a></p>
<p>试着打包博客网站成，搞一个桌面应用程序。</p>
<p><strong>安装淘宝镜像。</strong></p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">npm config <span class="hljs-built_in">set</span> registry https://registry.npmmirror.com<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">npm install -g cnpm --registry=https://registry.npmmirror.com<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><code class="hljs bash">C:\WINDOWS\system32&gt;cnpm -v<br>cnpm@9.4.0 (D:\softWare\nvm\nvm\v18.16.1\node_global\node_modules\cnpm\lib\parse_argv.js)<br>npm@9.9.2 (D:\softWare\nvm\nvm\v18.16.1\node_global\node_modules\cnpm\node_modules\npm\index.js)<br>node@16.19.0 (D:\softWare\nvm\node\node.exe)<br>npminstall@7.12.0 (D:\softWare\nvm\nvm\v18.16.1\node_global\node_modules\cnpm\node_modules\npminstall\lib\index.js)<br>prefix=D:\softWare\nvm\nvm\v18.16.1\node_global<br>win32 x64 10.0.19045<br>registry=https://registry.npmmirror.com<br></code></pre></td></tr></table></figure>

<p>安装 nativefier 打包。</p>
<figure class="highlight awk"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs awk">nativefier --name <span class="hljs-string">&quot;BLOG&quot;</span> https:<span class="hljs-regexp">//</span>deng-<span class="hljs-number">2022</span>.atomgit.net<span class="hljs-regexp">/blog/</span><br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">npm install nativefier -g<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">nativefier --name <span class="hljs-string">&quot;BLOG&quot;</span> <span class="hljs-string">&quot;https://deng-2022.atomgit.net/blog/&quot;</span> --icon <span class="hljs-string">&quot;D:\Blog\blog\themes\hexo-theme-fluid\source\img\icon\nlmy.ico&quot;</span><br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br></pre></td><td class="code"><pre><code class="hljs bash">Packaging... This will take a few seconds, maybe minutes <span class="hljs-keyword">if</span> the requested Electron isn<span class="hljs-string">&#x27;t cached yet...</span><br><span class="hljs-string">Error during build. Run with --verbose for details. RequestError: unable to verify the first certificate</span><br><span class="hljs-string">    at ClientRequest.&lt;anonymous&gt; (D:\softWare\nvm\nvm\v18.16.1\node_global\node_modules\nativefier\node_modules\got\dist\source\core\index.js:970:111)</span><br><span class="hljs-string">    at Object.onceWrapper (node:events:628:26)</span><br><span class="hljs-string">    at ClientRequest.emit (node:events:525:35)</span><br><span class="hljs-string">    at ClientRequest.emit (node:domain:489:12)</span><br><span class="hljs-string">    at ClientRequest.origin.emit (D:\softWare\nvm\nvm\v18.16.1\node_global\node_modules\nativefier\node_modules\@szmarczak\http-timer\dist\source\index.js:43:20)</span><br><span class="hljs-string">    at TLSSocket.socketErrorListener (node:_http_client:494:9)</span><br><span class="hljs-string">    at TLSSocket.emit (node:events:513:28)</span><br><span class="hljs-string">    at TLSSocket.emit (node:domain:489:12)</span><br><span class="hljs-string">    at emitErrorNT (node:internal/streams/destroy:157:8)</span><br><span class="hljs-string">    at emitErrorCloseNT (node:internal/streams/destroy:122:3)</span><br><span class="hljs-string">    at processTicksAndRejections (node:internal/process/task_queues:83:21)</span><br><span class="hljs-string">    at TLSSocket.onConnectSecure (node:_tls_wrap:1539:34)</span><br><span class="hljs-string">    at TLSSocket.emit (node:events:513:28)</span><br><span class="hljs-string">    at TLSSocket.emit (node:domain:489:12)</span><br><span class="hljs-string">    at TLSSocket._finishInit (node:_tls_wrap:953:8)</span><br><span class="hljs-string">    at TLSWrap.ssl.onhandshakedone (node:_tls_wrap:734:12) &#123;</span><br><span class="hljs-string">  code: &#x27;</span>UNABLE_TO_VERIFY_LEAF_SIGNATURE<span class="hljs-string">&#x27;,</span><br><span class="hljs-string">  timings: &#123;</span><br><span class="hljs-string">    start: 1753094403973,</span><br><span class="hljs-string">    socket: 1753094403974,</span><br><span class="hljs-string">    lookup: 1753094403975,</span><br><span class="hljs-string">    connect: 1753094403976,</span><br><span class="hljs-string">    secureConnect: undefined,</span><br><span class="hljs-string">    upload: undefined,</span><br><span class="hljs-string">    response: undefined,</span><br><span class="hljs-string">    end: undefined,</span><br><span class="hljs-string">    error: 1753094403983,</span><br><span class="hljs-string">    abort: undefined,</span><br><span class="hljs-string">    phases: &#123;</span><br><span class="hljs-string">      wait: 1,</span><br><span class="hljs-string">      dns: 1,</span><br><span class="hljs-string">      tcp: 1,</span><br><span class="hljs-string">      tls: undefined,</span><br><span class="hljs-string">      request: undefined,</span><br><span class="hljs-string">      firstByte: undefined,</span><br><span class="hljs-string">      download: undefined,</span><br><span class="hljs-string">      total: 10</span><br><span class="hljs-string">    &#125;</span><br><span class="hljs-string">  &#125;</span><br><span class="hljs-string">&#125;</span><br></code></pre></td></tr></table></figure>

<p>有问题，图标，网络。</p>
<figure class="highlight awk"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs awk">nativefier --name <span class="hljs-string">&quot;BLOG&quot;</span> --icon C:\icons\blog.ico https:<span class="hljs-regexp">//</span>deng-<span class="hljs-number">2022</span>.atomgit.net<span class="hljs-regexp">/blog/</span><br></code></pre></td></tr></table></figure>

<figure class="highlight awk"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs awk">nativefier --name <span class="hljs-string">&quot;BLOG&quot;</span> --icon D:\Blog\blog\themes\hexo-theme-fluid\source\img\icon\nlmy.ico https:<span class="hljs-regexp">//</span>deng-<span class="hljs-number">2022</span>.atomgit.net<span class="hljs-regexp">/blog/</span><br></code></pre></td></tr></table></figure>

<p>跳过 SSL 验证。</p>
<figure class="highlight routeros"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs routeros"><span class="hljs-built_in">set</span> <span class="hljs-attribute">NODE_TLS_REJECT_UNAUTHORIZED</span>=0<br></code></pre></td></tr></table></figure>

<p>配置 npm 使用国内镜像，直接使用 npm 的 Electron 镜像源。</p>
<figure class="highlight awk"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs awk">npm config set electron_mirror https:<span class="hljs-regexp">//</span>npmmirror.com<span class="hljs-regexp">/mirrors/</span>electron/<br></code></pre></td></tr></table></figure>

<figure class="highlight awk"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs awk">npm config set electron_builder_binaries_mirror https:<span class="hljs-regexp">//</span>npmmirror.com<span class="hljs-regexp">/mirrors/</span>electron-builder-binaries/<br></code></pre></td></tr></table></figure>

<p>重新运行打包。</p>
<figure class="highlight awk"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs awk">nativefier --name <span class="hljs-string">&quot;BLOG&quot;</span> --icon D:\Blog\blog\themes\hexo-theme-fluid\source\img\icon\nlmy.ico https:<span class="hljs-regexp">//</span>deng-<span class="hljs-number">2022</span>.atomgit.net<span class="hljs-regexp">/blog/</span><br></code></pre></td></tr></table></figure>

<p>如果还不成功，可以尝试<strong>手动下载 Electron 二进制</strong></p>
<ol>
<li>从 <a target="_blank" rel="noopener" href="https://registry.npmmirror.com/binary.html?path=electron/">Electron 镜像站 CNPM Binaries Mirror</a> 下载对应版本的 <code>electron-vXX.XX.XX-win32-x64.zip</code>。</li>
<li>将 ZIP 文件放入 Nativefier 缓存目录：<ul>
<li>Windows: <code>%LOCALAPPDATA%\electron\Cache</code></li>
<li>macOS/Linux: <code>~/.cache/electron/</code></li>
</ul>
</li>
<li>重新运行打包命令。</li>
</ol>
<p>擦，好像成功了。</p>
<figure class="highlight vhdl"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br></pre></td><td class="code"><pre><code class="hljs vhdl">C:\WINDOWS\system32&gt;nativefier <span class="hljs-comment">--name &quot;BLOG&quot; --icon D:\Blog\blog\themes\hexo-theme-fluid\source\img\icon\nlmy.ico https://deng-2022.atomgit.net/blog/</span><br><br><br>    Hi! Nativefier <span class="hljs-keyword">is</span> minimally maintained these days, <span class="hljs-keyword">and</span> needs more hands.<br>    <span class="hljs-keyword">If</span> you have the <span class="hljs-built_in">time</span> &amp; motivation, help <span class="hljs-keyword">with</span> bugfixes <span class="hljs-keyword">and</span> maintenance <span class="hljs-keyword">is</span> VERY welcome.<br>    Please go <span class="hljs-keyword">to</span> https://github.com/nativefier/nativefier <span class="hljs-keyword">and</span> help how you can. Thanks.<br><br><br><br>Processing options...<br><br>Preparing Electron app...<br><br>Converting icons...<br><br>Packaging... This will take a few seconds, maybe minutes <span class="hljs-keyword">if</span> the requested Electron isn<span class="hljs-symbol">&#x27;t</span> cached yet...<br>(node:<span class="hljs-number">16424</span>) <span class="hljs-literal">Warning</span>: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment <span class="hljs-keyword">variable</span> <span class="hljs-keyword">to</span> <span class="hljs-string">&#x27;0&#x27;</span> makes TLS connections <span class="hljs-keyword">and</span> HTTPS requests insecure by disabling certificate verification.<br>(<span class="hljs-keyword">Use</span> `node <span class="hljs-comment">--trace-warnings ...` to show where the warning was created)</span><br><br>Finalizing build...<br>App built <span class="hljs-keyword">to</span> C:\WINDOWS\system32\BLOG-win32-x64, move <span class="hljs-keyword">to</span> wherever it makes sense <span class="hljs-keyword">for</span> you <span class="hljs-keyword">and</span> run the contained .exe <span class="hljs-keyword">file</span>.<br></code></pre></td></tr></table></figure>

<p><img src="http://blog.memory-life.xyz/image-20250721190112849.png" alt="image-20250721190112849"></p>
<p><img src="http://blog.memory-life.xyz/image-20250721185942599.png" alt="image-20250721185942599"></p>
<p>下午七点钟，不到一个小时基本搞定了网页打包，开源工具确实高效。</p>
<p>后续优化下打包样式。</p>
<p><strong>博客还有两点待优化，Memos更新后需重新部署最新版，插入图片后选择 PicGo 上传服务保存图片至云端对象存储中。</strong></p>
<blockquote>
<p>2025 年 7 月 22 日</p>
</blockquote>
<p><a target="_blank" rel="noopener" href="https://www.pwabuilder.com/">Home / PWABuilder</a></p>
<p><a target="_blank" rel="noopener" href="https://appmaker.xyz/webapp">Convert Website to App | WebView App | Web2App builder | Create Web App</a></p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">nativefier --name <span class="hljs-string">&quot;Memory&#x27;s Blog&quot;</span> --icon D:\Blog\blog\themes\hexo-theme-fluid\<span class="hljs-built_in">source</span>\img\icon\dw.png http://deng-2022.atomgit.net/blog/ --maximize --full-screen<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">nativefier --name <span class="hljs-string">&quot;Blog&quot;</span> --icon D:\图片\dw.ico http://deng-2022.atomgit.net/blog/ --maximize<br></code></pre></td></tr></table></figure>

<p><a target="_blank" rel="noopener" href="https://www.aconvert.com/cn/">在线转换文档，图像，视频，音频文件</a></p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">nativefier --name <span class="hljs-string">&quot;Blog&quot;</span> --icon D:\图片\dw.ico http://deng-2022.atomgit.net/blog/ <br></code></pre></td></tr></table></figure>

<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/2501_91601374/article/details/147276258">网页一键打包APP，多种简单方法可行_网页打包app-CSDN博客</a></p>
<p><a target="_blank" rel="noopener" href="https://dev.dcloud.net.cn/pages/app/list">应用列表</a></p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/m0_57532432/article/details/135901340">【服务器APP】利用HBuilder X把网页打包成APP_hbuildx h5网址打包apk-CSDN博客</a></p>
<p>执行打包前需设置基础配置、图标配置、启动页面配置等内容，并使用手机号通过验证。</p>
<p><img src="http://blog.memory-life.xyz/image-20250722112828473.png" alt="image-20250722112828473"></p>
<p><img src="http://blog.memory-life.xyz/image-20250722112914318.png" alt="image-20250722112914318"></p>
<p>使用云端证书，取消勾选通讯录权限，在权限配置中删除对应一项权限。</p>
<p><a target="_blank" rel="noopener" href="https://ask.dcloud.net.cn/article/35985#server">Android平台云端打包证书使用说明 - DCloud问答</a></p>
<p><img src="http://blog.memory-life.xyz/image-20250722113438414.png" alt="image-20250722113438414"></p>
<p>正在排队打包中。</p>
<p><a target="_blank" rel="noopener" href="https://uniapp.dcloud.net.cn/worktile/">工程化 | uni-app官网</a></p>
<p><a target="_blank" rel="noopener" href="https://doc.dcloud.net.cn/uni-app-x/">uni-app x 是什么？ | uni-app-x</a></p>
<p><a target="_blank" rel="noopener" href="https://doc.dcloud.net.cn/uniCloud/">uniCloud概述 | uniCloud</a></p>
<figure class="highlight inform7"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><code class="hljs inform7"><span class="hljs-comment">[HBuilder]</span> 12:00:46.608 项目 Memory&#x27;Blog <span class="hljs-comment">[__W2A__deng-2022.atomgit.net]</span>的打包状态：<br><span class="hljs-comment">[HBuilder]</span> 12:00:46.608 时间: 2025-07-22 11:32:57    类型: Android云端证书    队列中    <br><span class="hljs-comment">[HBuilder]</span> 12:00:46.608 目前云打包排队人数较多，当前打包任务位于队列第 3 位，预计 1 分钟内进入打包状态。<br><span class="hljs-comment">[HBuilder]</span> 12:01:51.666 <br><span class="hljs-comment">[HBuilder]</span> 12:01:51.666 项目 Memory&#x27;Blog <span class="hljs-comment">[__W2A__deng-2022.atomgit.net]</span>的打包状态：<br><span class="hljs-comment">[HBuilder]</span> 12:01:51.666 时间: 2025-07-22 11:32:57    类型: Android云端证书    正在本地生成安装包(请勿关闭HBuilderX)    <br><span class="hljs-comment">[HBuilder]</span> 12:02:15.882 <br><span class="hljs-comment">[HBuilder]</span> 12:02:15.882 项目 Memory&#x27;Blog <span class="hljs-comment">[__W2A__deng-2022.atomgit.net]</span>的打包状态：<br><span class="hljs-comment">[HBuilder]</span> 12:02:15.882 时间: 2025-07-22 11:32:57    类型: Android云端证书    打包成功    安装包位置：D:/Project/HBuilderX/blog/Memory&#x27;Blog/unpackage/release/apk/__W2A__deng-2022.atomgit.net__20250722113257.apk	<span class="hljs-comment">[打开所在目录]</span>    <span class="hljs-comment">[一键上传到uniCloud（更优惠的cdn、长期稳定）]</span><br></code></pre></td></tr></table></figure>

<p>中午十二点多，打包完成。</p>
<p>全局禁用导航栏。</p>
<figure class="highlight json"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br></pre></td><td class="code"><pre><code class="hljs json"><span class="hljs-attr">&quot;global&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">&#123;</span><br>        <span class="hljs-attr">&quot;webviewParameter&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">&#123;</span><br>			<span class="hljs-attr">&quot;titleNView&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-literal"><span class="hljs-keyword">false</span></span><span class="hljs-punctuation">,</span><br>            <span class="hljs-comment">// &quot;titleNView&quot;: &#123;</span><br>            <span class="hljs-comment">//     &quot;autoBackButton&quot;: true,</span><br>            <span class="hljs-comment">//     &quot;backgroundColor&quot;: &quot;#f7f7f7&quot;,//导航栏背景色</span><br>            <span class="hljs-comment">//     &quot;titleColor&quot;: &quot;#000000&quot;,//标题颜色</span><br>            <span class="hljs-comment">//     &quot;titleSize&quot;: &quot;17px&quot;</span><br>            <span class="hljs-comment">// &#125;,</span><br>            <span class="hljs-attr">&quot;statusbar&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">&#123;</span><br>                <span class="hljs-comment">//系统状态栏样式(前景色)</span><br>                <span class="hljs-attr">&quot;style&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;dark&quot;</span><br>            <span class="hljs-punctuation">&#125;</span><span class="hljs-punctuation">,</span><br>            <span class="hljs-attr">&quot;appendCss&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;&quot;</span><span class="hljs-punctuation">,</span><br>            <span class="hljs-attr">&quot;appendJs&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;&quot;</span><br>        <span class="hljs-punctuation">&#125;</span><span class="hljs-punctuation">,</span><br>        <span class="hljs-attr">&quot;easyConfig&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">&#123;</span><span class="hljs-punctuation">&#125;</span><br>    <span class="hljs-punctuation">&#125;</span><span class="hljs-punctuation">,</span><br></code></pre></td></tr></table></figure>

<figure class="highlight json"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br></pre></td><td class="code"><pre><code class="hljs json"><span class="hljs-attr">&quot;pages&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">[</span><br>        <span class="hljs-punctuation">&#123;</span><br>            <span class="hljs-attr">&quot;webviewId&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;__W2A__deng-2022.atomgit.net&quot;</span><span class="hljs-punctuation">,</span><span class="hljs-comment">//首页</span><br>            <span class="hljs-attr">&quot;matchUrls&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">[</span><br>                <span class="hljs-punctuation">&#123;</span><br>                    <span class="hljs-attr">&quot;href&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;http://deng-2022.atomgit.net/blog&quot;</span><br>                <span class="hljs-punctuation">&#125;</span><span class="hljs-punctuation">,</span> <span class="hljs-punctuation">&#123;</span><br>                    <span class="hljs-attr">&quot;href&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;http://deng-2022.atomgit.net/blog/&quot;</span><br>                <span class="hljs-punctuation">&#125;</span><br>            <span class="hljs-punctuation">]</span><span class="hljs-punctuation">,</span><br>            <span class="hljs-attr">&quot;webviewParameter&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">&#123;</span><br>                <span class="hljs-attr">&quot;titleNView&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-literal"><span class="hljs-keyword">false</span></span><span class="hljs-punctuation">,</span><br>                <span class="hljs-attr">&quot;statusbar&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">&#123;</span><br>                    <span class="hljs-comment">//状态条背景色，</span><br>                    <span class="hljs-comment">//首页不使用原生导航条，颜色值建议和global-&gt;webviewParameter-&gt;titleNView-&gt;backgroundColor颜色值保持一致</span><br>                    <span class="hljs-comment">//若首页启用了原生导航条，则建议将首页的statusbar配置为false，这样状态条可以和原生导航条背景色保持一致；</span><br>                    <span class="hljs-attr">&quot;background&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;#f7f7f7&quot;</span><br>                <span class="hljs-punctuation">&#125;</span><br>            <span class="hljs-punctuation">&#125;</span><br>        <span class="hljs-punctuation">&#125;</span><br>    <span class="hljs-punctuation">]</span><br></code></pre></td></tr></table></figure>

<figure class="highlight inform7"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><code class="hljs inform7"><span class="hljs-comment">[HBuilder]</span> 17:08:45.812 <br><span class="hljs-comment">[HBuilder]</span> 17:08:45.812 项目 Memory&#x27;Blog <span class="hljs-comment">[__W2A__deng-2022.atomgit.net]</span>的打包状态：<br><span class="hljs-comment">[HBuilder]</span> 17:08:45.812 时间: 2025-07-22 16:23:45    类型: Android云端证书    打包成功    安装包位置：D:/Project/HBuilderX/blog/Memory&#x27;Blog/unpackage/release/apk/__W2A__deng-2022.atomgit.net__20250722162345.apk	<span class="hljs-comment">[打开所在目录]</span>    <span class="hljs-comment">[一键上传到uniCloud（更优惠的cdn、长期稳定）]</span><br><span class="hljs-comment">[HBuilder]</span> 17:08:45.822 HBuilderX已支持App cli自动化打包, 详情参考: https://hx.dcloud.net.cn/cli/pack <span class="hljs-comment">[不再提示]</span><br><span class="hljs-comment">[HBuilder]</span> 17:08:45.822 uni加固支持对apk文件进行安全加固，防破解、防篡改，<span class="hljs-comment">[一键加固]</span>（https://dev.dcloud.net.cn/pages/common/redirect?return_url=%2Fpages%2Fapp-safe%2Fadd%3Fappid%3D__W2A__deng-2022.atomgit.net%26appname%3DMemory%27s+Blog&amp;token=9bef0dafe2dfc1b58f1edd5f172826b0）<br></code></pre></td></tr></table></figure>

<blockquote>
<p>2025 年 7 月 23 日</p>
</blockquote>
<p>移动端打包还存在问题。</p>
<p><img src="http://blog.memory-life.xyz/image-20250723110956831.png" alt="image-20250723110956831"></p>
<p><img src="http://blog.memory-life.xyz/image-20250723111005766.png" alt="image-20250723111005766"></p>
<p>顶部的白边，还有非首页的导航栏问题。</p>
<p><a target="_blank" rel="noopener" href="https://ask.dcloud.net.cn/article/32">设置应用全屏显示 - DCloud问答</a></p>
<p>在 UniappX 中，当你设置 <code>&quot;fullscreen&quot;: true</code> 并切换到横屏模式时，屏幕顶部可能会遗留一个白色区块（原本竖屏状态栏的位置）。这是因为部分 Android 设备在横屏模式下仍然保留了状态栏的空间，即使状态栏已隐藏。</p>
<p><strong>解决方案</strong></p>
<p><strong>1. 强制全屏 + 沉浸式模式</strong></p>
<p>在 <code>manifest.json</code> 中，除了 <code>&quot;fullscreen&quot;: true</code>，还需要启用沉浸式模式：</p>
<figure class="highlight json"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><code class="hljs json"><span class="hljs-punctuation">&#123;</span><br>  <span class="hljs-attr">&quot;plus&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">&#123;</span><br>    <span class="hljs-attr">&quot;statusbar&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">&#123;</span><br>      <span class="hljs-attr">&quot;immersed&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-literal"><span class="hljs-keyword">true</span></span>  <span class="hljs-comment">// 沉浸式状态栏（Android 4.4+ / iOS 7+）</span><br>    <span class="hljs-punctuation">&#125;</span><span class="hljs-punctuation">,</span><br>    <span class="hljs-attr">&quot;fullscreen&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-literal"><span class="hljs-keyword">true</span></span>  <span class="hljs-comment">// 全屏模式</span><br>  <span class="hljs-punctuation">&#125;</span><br><span class="hljs-punctuation">&#125;</span><br></code></pre></td></tr></table></figure>

<p>这样可以让内容真正覆盖整个屏幕，避免白色区块残留。</p>
<figure class="highlight json"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br></pre></td><td class="code"><pre><code class="hljs json"><span class="hljs-punctuation">&#123;</span><br>    <span class="hljs-attr">&quot;global&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">&#123;</span><br>        <span class="hljs-attr">&quot;webviewParameter&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">&#123;</span><br>			<span class="hljs-attr">&quot;titleNView&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-literal"><span class="hljs-keyword">false</span></span><span class="hljs-punctuation">,</span><br>            <span class="hljs-attr">&quot;appendCss&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;&quot;</span><span class="hljs-punctuation">,</span><br>            <span class="hljs-attr">&quot;appendJs&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;&quot;</span><br>        <span class="hljs-punctuation">&#125;</span><span class="hljs-punctuation">,</span><br>        <span class="hljs-attr">&quot;easyConfig&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">&#123;</span><span class="hljs-punctuation">&#125;</span><br>    <span class="hljs-punctuation">&#125;</span><span class="hljs-punctuation">,</span><br>    <span class="hljs-attr">&quot;pages&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">[</span><br>        <span class="hljs-punctuation">&#123;</span><br>            <span class="hljs-attr">&quot;webviewId&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;__W2A__deng-2022.atomgit.net&quot;</span><span class="hljs-punctuation">,</span><span class="hljs-comment">//首页</span><br>            <span class="hljs-attr">&quot;matchUrls&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">[</span><br>                <span class="hljs-punctuation">&#123;</span><br>                    <span class="hljs-attr">&quot;href&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;http://deng-2022.atomgit.net/blog&quot;</span><br>                <span class="hljs-punctuation">&#125;</span><span class="hljs-punctuation">,</span> <span class="hljs-punctuation">&#123;</span><br>                    <span class="hljs-attr">&quot;href&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;http://deng-2022.atomgit.net/blog/&quot;</span><br>                <span class="hljs-punctuation">&#125;</span><span class="hljs-punctuation">,</span> <span class="hljs-punctuation">&#123;</span><br>                    <span class="hljs-attr">&quot;href&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;http://deng-2022.atomgit.net/blog/archives/&quot;</span><br>                <span class="hljs-punctuation">&#125;</span><br>            <span class="hljs-punctuation">]</span><span class="hljs-punctuation">,</span><br>            <span class="hljs-attr">&quot;webviewParameter&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">&#123;</span><br>                <span class="hljs-attr">&quot;titleNView&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-literal"><span class="hljs-keyword">false</span></span><br>            <span class="hljs-punctuation">&#125;</span><br>        <span class="hljs-punctuation">&#125;</span><br>    <span class="hljs-punctuation">]</span><br><span class="hljs-punctuation">&#125;</span><br></code></pre></td></tr></table></figure>

<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><code class="hljs js">  <span class="hljs-attr">onShow</span>: <span class="hljs-keyword">function</span>(<span class="hljs-params"></span>) &#123;<br>      <span class="hljs-variable language_">console</span>.<span class="hljs-title function_">log</span>(<span class="hljs-string">&#x27;show&#x27;</span>);<br><span class="hljs-comment">// 在页面加载时强制沉浸式</span><br>plus.<span class="hljs-property">navigator</span>.<span class="hljs-title function_">setImmersed</span>(<span class="hljs-literal">true</span>);<br><span class="hljs-comment">// 设置应用全屏显示！  </span><br>plus.<span class="hljs-property">navigator</span>.<span class="hljs-title function_">setFullscreen</span>(<span class="hljs-literal">true</span>); <br>  &#125;,<br></code></pre></td></tr></table></figure>

<p><a target="_blank" rel="noopener" href="https://uniapp.dcloud.net.cn/tutorial/run/installSimulator.html">安装模拟器@Simulator | uni-app官网</a></p>
<p><a target="_blank" rel="noopener" href="https://uniapp.dcloud.net.cn/tutorial/run/run-app-faq.html">真机运行常见问题@run | uni-app官网</a></p>
<p><img src="http://blog.memory-life.xyz/image-20250723114024907.png" alt="image-20250723114024907"></p>
<p>手机端下载连接至 windows 软件，不支持，不过好歹打包完成，两个问题完美解决。</p>
<h1 id="代码推送"><a href="#代码推送" class="headerlink" title="代码推送"></a>代码推送</h1><blockquote>
<p>2025 年 7 月 21 日</p>
</blockquote>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br></pre></td><td class="code"><pre><code class="hljs bash">D:\Blog\blog&gt;HEXO D<br>INFO  Validating config<br>INFO  Deploying: git<br>INFO  Clearing .deploy_git folder...<br>INFO  Copying files from public folder...<br>INFO  Copying files from extend <span class="hljs-built_in">dirs</span>...<br><span class="hljs-string">&#x27;git&#x27;</span> 不是内部或外部命令，也不是可运行的程序<br>或批处理文件。<br>FATAL &#123;<br>  err: Error: spawn git ENOENT<br>      at notFoundError (D:\Blog\blog\node_modules\cross-spawn\lib\enoent.js:6:26)<br>      at verifyENOENT (D:\Blog\blog\node_modules\cross-spawn\lib\enoent.js:40:16)<br>      at ChildProcess.cp.emit (D:\Blog\blog\node_modules\cross-spawn\lib\enoent.js:27:25)<br>      at Process.ChildProcess._handle.onexit (node:internal/child_process:293:12) &#123;<br>    code: <span class="hljs-string">&#x27;ENOENT&#x27;</span>,<br>    errno: <span class="hljs-string">&#x27;ENOENT&#x27;</span>,<br>    syscall: <span class="hljs-string">&#x27;spawn git&#x27;</span>,<br>    path: <span class="hljs-string">&#x27;git&#x27;</span>,<br>    spawnargs: [ <span class="hljs-string">&#x27;add&#x27;</span>, <span class="hljs-string">&#x27;-A&#x27;</span> ]<br>  &#125;<br>&#125; Something<span class="hljs-string">&#x27;s wrong. Maybe you can find the solution here: %s https://hexo.io/docs/troubleshooting.html</span><br><span class="hljs-string"></span><br><span class="hljs-string">D:\Blog\blog&gt;</span><br></code></pre></td></tr></table></figure>

<p>恢复出厂设置后，原先 Git 环境变量也被清除了，怪不得连续推送三五遍都没见着网站更新。</p>
<figure class="highlight avrasm"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs avrasm"><span class="hljs-symbol">D:</span>\dev\Git\bin<br></code></pre></td></tr></table></figure>

<p>添加环境变量，搞定。</p>
<p>令我感到惊喜的是，今下午一步到位实现了将个人博客网站打包成本地免安装的应用程序，代码更新后应用程序同样同步更新。</p>
<p>太棒了。</p>
<h1 id="二级菜单"><a href="#二级菜单" class="headerlink" title="二级菜单"></a>二级菜单</h1><blockquote>
<p>2025 年 8 月 18 日</p>
</blockquote>
<p>导航菜单。</p>
<p><a target="_blank" rel="noopener" href="https://hexo.fluid-dev.com/docs/guide/">配置指南 | Hexo Fluid 用户手册</a></p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-attr">navbar:</span><br>  <span class="hljs-attr">menu:</span><br>    <span class="hljs-bullet">-</span> &#123; <span class="hljs-attr">key:</span> <span class="hljs-string">&#x27;home&#x27;</span>, <span class="hljs-attr">link:</span> <span class="hljs-string">&#x27;/&#x27;</span>, <span class="hljs-attr">icon:</span> <span class="hljs-string">&#x27;iconfont icon-home-fill&#x27;</span> &#125;<br>    <span class="hljs-bullet">-</span> &#123; <span class="hljs-attr">key:</span> <span class="hljs-string">&#x27;tag&#x27;</span>, <span class="hljs-attr">link:</span> <span class="hljs-string">&#x27;/tags/&#x27;</span>, <span class="hljs-attr">icon:</span> <span class="hljs-string">&#x27;iconfont icon-tags-fill&#x27;</span> &#125;<br>    <span class="hljs-bullet">-</span> &#123; <span class="hljs-attr">key:</span> <span class="hljs-string">&#x27;about&#x27;</span>, <span class="hljs-attr">link:</span> <span class="hljs-string">&#x27;/about/&#x27;</span>, <span class="hljs-attr">icon:</span> <span class="hljs-string">&#x27;iconfont icon-user-fill&#x27;</span>, <span class="hljs-attr">name:</span> <span class="hljs-string">&#x27;联系我&#x27;</span> &#125;<br></code></pre></td></tr></table></figure>

<ul>
<li><code>key</code>: 用于关联有<a target="_blank" rel="noopener" href="https://hexo.fluid-dev.com/docs/guide/#%E8%AF%AD%E8%A8%80%E9%85%8D%E7%BD%AE">语言配置</a>，如不存在关联则显示 key 本身的值</li>
<li><code>link</code>: 跳转链接</li>
<li><code>icon</code>: 图标的 css class，可以省略（即没有图标），主题内置图标详见<a target="_blank" rel="noopener" href="https://hexo.fluid-dev.com/docs/icon/">这里</a></li>
<li><code>name</code>: 强制使用此名称显示（不再按语言配置显示），可省略</li>
</ul>
<p>另外支持二级菜单（下拉菜单），配置写法如下：</p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-attr">menu:</span><br>  <span class="hljs-bullet">-</span> &#123;<br>      <span class="hljs-attr">key:</span> <span class="hljs-string">&#x27;文档&#x27;</span>,<br>      <span class="hljs-attr">icon:</span> <span class="hljs-string">&#x27;iconfont icon-books&#x27;</span>,<br>      <span class="hljs-attr">submenu:</span> [<br>        &#123; <span class="hljs-attr">key:</span> <span class="hljs-string">&#x27;主题博客&#x27;</span>, <span class="hljs-attr">link:</span> <span class="hljs-string">&#x27;https://hexo.fluid-dev.com/&#x27;</span> &#125;,<br>        &#123; <span class="hljs-attr">key:</span> <span class="hljs-string">&#x27;配置指南&#x27;</span>, <span class="hljs-attr">link:</span> <span class="hljs-string">&#x27;https://hexo.fluid-dev.com/docs/guide/&#x27;</span> &#125;,<br>        &#123; <span class="hljs-attr">key:</span> <span class="hljs-string">&#x27;图标用法&#x27;</span>, <span class="hljs-attr">link:</span> <span class="hljs-string">&#x27;https://hexo.fluid-dev.com/docs/icon/&#x27;</span> &#125;<br>      ]<br>  &#125;<br></code></pre></td></tr></table></figure>

<p><a target="_blank" rel="noopener" href="https://hexo.fluid-dev.com/docs/guide/#tag-%E6%8F%92%E4%BB%B6">配置指南 | Hexo Fluid 用户手册</a></p>
<p><a target="_blank" rel="noopener" href="https://hexo.fluid-dev.com/posts/hello-fluid/#%E6%96%87%E5%AD%97">Hello Fluid - Hexo Theme Fluid</a></p>
<h1 id="内置图标"><a href="#内置图标" class="headerlink" title="内置图标"></a>内置图标</h1><blockquote>
<p>2025 年 10 月 1 日</p>
</blockquote>
<p>Hexo Fluid 提供内置图标，使用又方便，就不用去阿里 iconfont 下载图标倒腾几遍都用不了了。</p>
<p><a target="_blank" rel="noopener" href="https://hexo.fluid-dev.com/docs/icon/#%E5%86%85%E7%BD%AE%E7%A4%BE%E4%BA%A4%E5%9B%BE%E6%A0%87">图标 | Hexo Fluid 用户手册</a></p>
<h1 id="图床"><a href="#图床" class="headerlink" title="图床"></a>图床</h1><h2 id="搭建图床"><a href="#搭建图床" class="headerlink" title="搭建图床"></a>搭建图床</h2><p>几个月前搞伙伴匹配系统轮播图，想用自己的图片来做这个轮播图 <strong>（2023/12/02 早）</strong></p>
<p>那我搭建一个自己的图床呗 拿个图片老方便了 学一学怎么搭建图床 说干就干</p>
<p>搭建过程就不多说了 收藏了好几个 CSDN 博客教程</p>
<p><img src="http://blog.memory-life.xyz/image-20231202103311050.png" alt="image-20231202103311050"></p>
<ul>
<li><h5 id="最重要的是在-PicGo-里下一个插件-搭建一个-Gitee-图床-不用-GitHub-图床是因为这玩意儿-BUG-太多了-尤其是网络原因"><a href="#最重要的是在-PicGo-里下一个插件-搭建一个-Gitee-图床-不用-GitHub-图床是因为这玩意儿-BUG-太多了-尤其是网络原因" class="headerlink" title="最重要的是在 PicGo 里下一个插件 搭建一个 Gitee 图床 (不用 GitHub 图床是因为这玩意儿 BUG 太多了 尤其是网络原因)"></a>最重要的是在 PicGo 里下一个插件 搭建一个 Gitee 图床 (不用 GitHub 图床是因为这玩意儿 BUG 太多了 尤其是网络原因)</h5></li>
<li><h5 id="两个图床的配置都放下面了-我用了-Gitee-图床"><a href="#两个图床的配置都放下面了-我用了-Gitee-图床" class="headerlink" title="两个图床的配置都放下面了 我用了 Gitee 图床"></a>两个图床的配置都放下面了 我用了 Gitee 图床</h5></li>
</ul>
<p><img src="http://blog.memory-life.xyz/image-20230523223215190.png" alt="image-20230523223215190"></p>
<p><img src="http://blog.memory-life.xyz/image-20230523223310839.png" alt="image-20230523223310839"></p>
<ul>
<li><h5 id="上传到图床的图片可以随意使用了"><a href="#上传到图床的图片可以随意使用了" class="headerlink" title="上传到图床的图片可以随意使用了"></a>上传到图床的图片可以随意使用了</h5></li>
<li><h5 id="在-Typora-gt-偏好设置-gt-图像-里配置好上传服务和-PicGo-路径后-Typora-里使用到的图片都会自动上传到图床上去"><a href="#在-Typora-gt-偏好设置-gt-图像-里配置好上传服务和-PicGo-路径后-Typora-里使用到的图片都会自动上传到图床上去" class="headerlink" title="在 Typora -&gt; 偏好设置 -&gt; 图像 里配置好上传服务和 PicGo 路径后 Typora 里使用到的图片都会自动上传到图床上去"></a>在 Typora -&gt; 偏好设置 -&gt; 图像 里配置好上传服务和 PicGo 路径后 Typora 里使用到的图片都会自动上传到图床上去</h5></li>
<li><h5 id="最后展示一下我刚上传到图床里的图片吧"><a href="#最后展示一下我刚上传到图床里的图片吧" class="headerlink" title="最后展示一下我刚上传到图床里的图片吧"></a>最后展示一下我刚上传到图床里的图片吧</h5></li>
</ul>
<p><img src="http://blog.memory-life.xyz/sunset.jpg"></p>
<p><img src="http://blog.memory-life.xyz/image-20230523223215190.png"></p>
<p><img src="http://blog.memory-life.xyz/sunset.jpg"></p>
<p><img src="http://blog.memory-life.xyz/girl3.jpg"></p>
<ul>
<li><h5 id="操他妈的这张图片怎么就显示不出来呢"><a href="#操他妈的这张图片怎么就显示不出来呢" class="headerlink" title="操他妈的这张图片怎么就显示不出来呢"></a>操他妈的这张图片怎么就显示不出来呢</h5></li>
</ul>
<p><img src="http://blog.memory-life.xyz/girl3.jpg"></p>
<p><img src="http://blog.memory-life.xyz/error.png"></p>
<ul>
<li><h5 id="操他妈的上个厕所就能显示了"><a href="#操他妈的上个厕所就能显示了" class="headerlink" title="操他妈的上个厕所就能显示了"></a>操他妈的上个厕所就能显示了</h5></li>
<li><h5 id="总之-图床可以正常使用了-现在把浏览器收藏夹整理一下先-2023-05-23-晚"><a href="#总之-图床可以正常使用了-现在把浏览器收藏夹整理一下先-2023-05-23-晚" class="headerlink" title="总之 图床可以正常使用了 现在把浏览器收藏夹整理一下先 (2023/05/23 晚)"></a>总之 图床可以正常使用了 现在把浏览器收藏夹整理一下先 (2023/05/23 晚)</h5></li>
<li><h5 id="今天距伙伴匹配系统从零开发-整整俩个月了-简单纪念一下-但是今天不想编码了-干点儿别的吧-2023-05-24-晚"><a href="#今天距伙伴匹配系统从零开发-整整俩个月了-简单纪念一下-但是今天不想编码了-干点儿别的吧-2023-05-24-晚" class="headerlink" title="今天距伙伴匹配系统从零开发 整整俩个月了 简单纪念一下 但是今天不想编码了 干点儿别的吧 (2023/05/24 晚)"></a>今天距伙伴匹配系统从零开发 整整俩个月了 简单纪念一下 但是今天不想编码了 干点儿别的吧 (2023/05/24 晚)</h5></li>
</ul>
<h2 id="好用的图床"><a href="#好用的图床" class="headerlink" title="好用的图床"></a>好用的图床</h2><blockquote>
<p>2024 年 6 月 10 日</p>
</blockquote>
<p>推荐阅读：<a target="_blank" rel="noopener" href="https://www.sohu.com/a/741636673_584557">分享 8 个免费的图床，帮助你轻松在 Power BI 报告中使用图片<em>注册</em>支持_https (sohu.com)</a></p>
<p>最近尝试在云服务器上搭建个人博客，顺便学习了基础的 Linux 命令操作、Nginx 安装配置、Node 安装配置和 Git 安装配置。</p>
<p>我已经把 Gitee 图床上的图片上传至七牛云中，之后等域名备案完成之后，直接批量修改个人博客中引用到的图片路径就行了。</p>
<p>七牛云也提供免费的对象存储服务，一个月免费十个 G 的额度，够用了。</p>
<p><strong>Hello 图床</strong>：<a target="_blank" rel="noopener" href="https://www.helloimg.com/">https://www.helloimg.com/</a></p>
<p><img src="http://blog.memory-life.xyz/image-20240610123532512.png" alt="image-20240610123532512"></p>
<p><img src="http://blog.memory-life.xyz/image-20240610121503766.png"></p>
<p><img src="http://blog.memory-life.xyz/image-20240610122437987.png" alt="image-20240610122437987"></p>
<p>什么情况，这个免费的图床这么好用。</p>
<p>我就尝试了这一个，剩下的点开主页看了看，展示一下吧（<strong>普通人使用免费图床的门槛也低了很多，确实挺方便</strong>）：</p>
<p>PicGo：<a target="_blank" rel="noopener" href="https://www.picgo.net/">https://www.picgo.net/</a></p>
<p><img src="http://blog.memory-life.xyz/image-20240610122753576.png" alt="image-20240610122753576"></p>
<p><strong>路过图床</strong>：<a target="_blank" rel="noopener" href="https://imgse.com/">https://imgse.com/</a></p>
<p><img src="http://blog.memory-life.xyz/image-20240610122851287.png" alt="image-20240610122851287"></p>
<p><strong>sm.ms</strong>：<a target="_blank" rel="noopener" href="https://sm.ms/">https://sm.ms</a></p>
<p><img src="http://blog.memory-life.xyz/image-20240610122928034.png" alt="image-20240610122928034"></p>
<p><strong>薄荷图床</strong>：<a target="_blank" rel="noopener" href="https://riyugo.com/">https://riyugo.com/</a></p>
<p><img src="http://blog.memory-life.xyz/image-20240610123042851.png" alt="image-20240610123042851"></p>
<p>风筝图床：<a target="_blank" rel="noopener" href="https://www.imgbed.link/">https://www.imgbed.link/</a></p>
<p><img src="http://blog.memory-life.xyz/image-20240610123132923.png" alt="image-20240610123132923"></p>
<p><strong>ImgURL 图床</strong>：<a target="_blank" rel="noopener" href="https://www.imgurl.org/">https://www.imgurl.org/</a></p>
<p><img src="http://blog.memory-life.xyz/image-20240610123217737.png" alt="image-20240610123217737"></p>
<p><strong>Z4A 图床</strong>：<a target="_blank" rel="noopener" href="https://z4a.net/">https://z4a.net/</a></p>
<p><img src="http://blog.memory-life.xyz/image-20240610123412270.png" alt="image-20240610123412270"></p>
<h2 id="七牛云"><a href="#七牛云" class="headerlink" title="七牛云"></a>七牛云</h2><blockquote>
<p>2024 年 7 月 8 日</p>
</blockquote>
<p><a target="_blank" rel="noopener" href="https://developer.qiniu.com/kodo/8556/set-the-custom-source-domain-name#2">设置自定义源站域名<em>使用指南</em>对象存储 - 七牛开发者中心 (qiniu.com)</a></p>
<p>七牛云新建对象存储空间后，会自动生成一个域名，一个月后自动失效。</p>
<p>这个临时域名实际上是配置了域名转发，将资源地址转发到真实的域名下，真实服务器的域名跟对象存储桶的存储区域相关：</p>
<p><img src="http://blog.memory-life.xyz/image-20240708113657969.png" alt="image-20240708113657969"></p>
<p>比方说这个存储区域下的服务器域名就是：<strong>iovip-z1.qiniuio.com</strong></p>
<p>临时域名失效后，就需要配置自定义域名就能生成存储空间的图片外链，才能够在浏览器中正常访问到图片。</p>
<p>我的域名上个月提交备案后，十天左右就备案通过了，添加 CNAME 即解析记录：</p>
<p><img src="http://blog.memory-life.xyz/image-20240708110800228.png" alt="image-20240708110800228"></p>
<p>这里需要着重注意两点：<strong>记录值（目标服务器）和主机记录（映射域名）</strong>，当然<strong>记录类型</strong>要为 <strong>CNAME</strong>，配置完成即可：</p>
<p><img src="http://blog.memory-life.xyz/image-20240708114215875.png" alt="image-20240708114215875"></p>
<p>七牛云这边就可以自定义源站域名，并成功绑定：</p>
<p><img src="http://blog.memory-life.xyz/image-20240708111450150.png" alt="image-20240708111450150"></p>
<p>阿里云有个挺不错的网络拨测工具，查看域名能否访问到，检测网络是否连通：</p>
<p><img src="http://blog.memory-life.xyz/image-20240708114448322.png" alt="image-20240708114448322"></p>
<p>PicGo 配置七牛云图床：</p>
<p><a target="_blank" rel="noopener" href="https://www.baidu.com/link?url=23pidhpNvNJLrDF64nSHp7b2lJVZnS8nGw5-Oxb61tPJYDqWZ_R-O9ujTnZGvKX2mSpQYNl93Rh4JE9xbuMuwujstgFg7gRELrkF4NkDlqW&wd=&eqid=b2f86f280031714e00000003668bdc85">baidu.com/link?url=23pidhpNvNJLrDF64nSHp7b2lJVZnS8nGw5-Oxb61tPJYDqWZ_R-O9ujTnZGvKX2mSpQYNl93Rh4JE9xbuMuwujstgFg7gRELrkF4NkDlqW&amp;wd=&amp;eqid=b2f86f280031714e00000003668bdc85</a></p>
<p>配置完成后上传成功，浏览器也能正常显示，可 Typero 上显示不出来。</p>
<p>妈的，写了个 http 协议前缀就正常访问了，真诡异。</p>
<p><img src="http://blog.memory-life.xyz/image-20240708224104785.png" alt="image-20240708224104785"></p>
<p><img src="http://blog.memory-life.xyz/image-20240708224712943.png" alt="image-20240708224712943"></p>
<p>七牛云图床设置改成这样就行了，问题解决：</p>
<p><img src="http://blog.memory-life.xyz/image-20240708225103784.png" alt="image-20240708225103784"></p>
<blockquote>
<p>2024 年 7 月 9 日</p>
</blockquote>
<p>浏览器还是不显示，正在解决中。。</p>
<p><img src="http://blog.memory-life.xyz/image-20240709082420367.png" alt="image-20240709082420367"></p>
<p>解决了，也不算解决了，只是发现问题所在了：<a target="_blank" rel="noopener" href="https://zhuanlan.zhihu.com/p/542101567/">Hexo 图片插入无法显示的问题 - 知乎 (zhihu.com)</a></p>
<blockquote>
<p>2024 年 7 月 11 日</p>
</blockquote>
<p><img src="http://blog.memory-life.xyz/image-20240711212234033.png" alt="image-20240711212234033"></p>
<blockquote>
<p>2025 年 1 月 13 日</p>
</blockquote>
<p>七牛云收费标准：</p>
<ol>
<li><p>对象存储容量收费：用户需要为存储在七牛云存储中的对象分配相应的存储空间，每个对象的大小不同，因此会产生不同的费用，七牛云存储提供了多种存储空间套餐，用户可以根据自己的需求选择合适的套餐。</p>
</li>
<li><p>流量收费：用户在使用七牛云存储的过程中，会产生数据的读写操作，从而产生流量费用，七牛云存储提供了按量付费和包年包月两种流量计费方式，用户可以根据自己的需求选择合适的计费方式。</p>
</li>
<li><p>请求次数收费：用户在使用七牛云存储的过程中，会产生各种 API 请求，如上传、下载、删除等，每次请求都会消耗一定的请求次数，七牛云存储提供了按量付费和包年包月两种请求次数计费方式，用户可以根据自己的需求选择合适的计费方式。</p>
</li>
</ol>
<p><img src="http://blog.memory-life.xyz/image-20250113085813678.png" alt="image-20250113085813678"></p>
<p><img src="http://blog.memory-life.xyz/image-20250113090901784.png" alt="image-20250113090901784"></p>
<p>我开设的这个存储空间，本来每个月都有免费 30 GB 免费存储额度的，但上传下载需要额外计费，按量计费。</p>
<blockquote>
<p>2025 年 7 月 2 日·</p>
</blockquote>
<p>博客上传至七牛云对象存储的所有图片，也就是博客站点的所有图片，都备份保存在了本机 C 盘里。</p>
<figure class="highlight moonscript"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs moonscript"><span class="hljs-name">C</span>:\Users\Lenovo\AppData\Roaming\Typora\typora-user-images<br></code></pre></td></tr></table></figure>

<p>足足两千四百六十九张图片。</p>
<p><img src="http://blog.memory-life.xyz/image-20250721225419195.png" alt="image-20250721225419195"></p>
<p><img src="http://blog.memory-life.xyz/image-20250721225526964.png" alt="image-20250721225526964"></p>
<p><img src="http://blog.memory-life.xyz/image-20250721225613301.png" alt="image-20250721225613301"></p>
<p>可以正常上传图片了。</p>
<p>我好像干了一件不得了的事情，半个多月前还在吹嘘C盘里保存了两千四百六十九张图片，一周前的恢复出厂设置将那一切变成了过往云烟。</p>
<p>也许有很大一部分未来得及上传的图片。</p>
<p>不过那也仅仅占一小部分而已，更多的是截图后的废稿，如此看来倒是省下了不少磁盘空间。</p>
<p>长长记性。</p>
<h1 id="踩坑记录"><a href="#踩坑记录" class="headerlink" title="踩坑记录"></a>踩坑记录</h1><h2 id="node-版本过高"><a href="#node-版本过高" class="headerlink" title="node 版本过高"></a>node 版本过高</h2><ul>
<li><h5 id="注意，在使用-VuePress-生成文档站点的最后一步：在本地启动文档站点服务时，我出现了这样的问题："><a href="#注意，在使用-VuePress-生成文档站点的最后一步：在本地启动文档站点服务时，我出现了这样的问题：" class="headerlink" title="注意，在使用 VuePress 生成文档站点的最后一步：在本地启动文档站点服务时，我出现了这样的问题："></a>注意，在使用 VuePress 生成文档站点的最后一步：在本地启动文档站点服务时，我出现了这样的问题：</h5></li>
</ul>
<p><img src="http://blog.memory-life.xyz/image-20230624211723443.png" alt="image-20230624211723443"></p>
<ul>
<li><h5 id="问题原因及解决办法：解决方法-胡八一-的博客-CSDN-博客"><a href="#问题原因及解决办法：解决方法-胡八一-的博客-CSDN-博客" class="headerlink" title="问题原因及解决办法：解决方法_胡八一 的博客-CSDN 博客"></a>问题原因及解决办法：<a target="_blank" rel="noopener" href="https://blog.csdn.net/qq_44732146/article/details/129041176">解决方法_胡八一 的博客-CSDN 博客</a></h5></li>
<li><h5 id="这就是此时的-node-版本过高，导致的兼容性问题（此时我用的是-v18-16-1），转换-node-为低版本-v16-19-0-后，问题解决"><a href="#这就是此时的-node-版本过高，导致的兼容性问题（此时我用的是-v18-16-1），转换-node-为低版本-v16-19-0-后，问题解决" class="headerlink" title="这就是此时的 node 版本过高，导致的兼容性问题（此时我用的是 v18.16.1），转换 node 为低版本 v16.19.0 后，问题解决"></a>这就是此时的 node 版本过高，导致的兼容性问题（此时我用的是 v18.16.1），转换 node 为低版本 v16.19.0 后，问题解决</h5></li>
<li><h5 id="这里也能比较出-VuePress-站点生成器相较于-VitePress，是有点落后了，推荐使用-VitePress-站点生成器"><a href="#这里也能比较出-VuePress-站点生成器相较于-VitePress，是有点落后了，推荐使用-VitePress-站点生成器" class="headerlink" title="这里也能比较出 VuePress 站点生成器相较于 VitePress，是有点落后了，推荐使用 VitePress 站点生成器"></a>这里也能比较出 VuePress 站点生成器相较于 VitePress，是有点落后了，推荐使用 VitePress 站点生成器</h5></li>
<li><h5 id="成功在本地开启-VuePress-文档站点服务！效果如下："><a href="#成功在本地开启-VuePress-文档站点服务！效果如下：" class="headerlink" title="成功在本地开启 VuePress 文档站点服务！效果如下："></a>成功在本地开启 VuePress 文档站点服务！效果如下：</h5></li>
</ul>
<p><img src="http://blog.memory-life.xyz/image-20230624221026328.png" alt="image-20230624221026328"></p>
<hr>
<p><img src="http://blog.memory-life.xyz/image-20230624220751165.png" alt="image-20230624220751165"></p>
<ul>
<li><h5 id="这个问题其实是-VuePress-站点生成器的共同问题，不兼容较新的-node-js-环境，我在配置使用-vuepress-theme-vdoing-主题时，也出现了这个问题"><a href="#这个问题其实是-VuePress-站点生成器的共同问题，不兼容较新的-node-js-环境，我在配置使用-vuepress-theme-vdoing-主题时，也出现了这个问题" class="headerlink" title="这个问题其实是 VuePress 站点生成器的共同问题，不兼容较新的 node.js 环境，我在配置使用 vuepress-theme-vdoing 主题时，也出现了这个问题"></a>这个问题其实是 VuePress 站点生成器的共同问题，不兼容较新的 node.js 环境，我在配置使用 vuepress-theme-vdoing 主题时，也出现了这个问题</h5></li>
<li><h5 id="遇到这种问题，要么降低-node-版本去兼容，要么舍弃这种程序服务"><a href="#遇到这种问题，要么降低-node-版本去兼容，要么舍弃这种程序服务" class="headerlink" title="遇到这种问题，要么降低 node 版本去兼容，要么舍弃这种程序服务"></a>遇到这种问题，要么降低 node 版本去兼容，要么舍弃这种程序服务</h5></li>
<li><h5 id="比如用-VitePress-替代-VuePress，用-vuepress-theme-hope-主题替代-vuepress-theme-vdoing-主题"><a href="#比如用-VitePress-替代-VuePress，用-vuepress-theme-hope-主题替代-vuepress-theme-vdoing-主题" class="headerlink" title="比如用 VitePress 替代 VuePress，用 vuepress-theme-hope 主题替代 vuepress-theme-vdoing 主题"></a>比如用 VitePress 替代 VuePress，用 vuepress-theme-hope 主题替代 vuepress-theme-vdoing 主题</h5></li>
<li><h5 id="具体怎么应对，各求所需，因人而异"><a href="#具体怎么应对，各求所需，因人而异" class="headerlink" title="具体怎么应对，各求所需，因人而异"></a>具体怎么应对，各求所需，因人而异</h5></li>
</ul>
<h2 id="node-版本过低"><a href="#node-版本过低" class="headerlink" title="node 版本过低"></a>node 版本过低</h2><ul>
<li><h5 id="我在安装配置-VitePress-文档站点主题时，报错了："><a href="#我在安装配置-VitePress-文档站点主题时，报错了：" class="headerlink" title="我在安装配置 VitePress 文档站点主题时，报错了："></a>我在安装配置 VitePress 文档站点主题时，报错了：</h5></li>
</ul>
<p><img src="http://blog.memory-life.xyz/image-20230704152135707.png" alt="image-20230704152135707"></p>
<ul>
<li><h5 id="很显然，node-版本过低，于是我修改-node-版本为-18-16-1，问题成功解决"><a href="#很显然，node-版本过低，于是我修改-node-版本为-18-16-1，问题成功解决" class="headerlink" title="很显然，node 版本过低，于是我修改 node 版本为 18.16.1，问题成功解决"></a>很显然，node 版本过低，于是我修改 node 版本为 18.16.1，问题成功解决</h5></li>
<li><h5 id="有关-node-版本的修改可以在《配置指南-掌握-Node-js-配置》一文中详细了解"><a href="#有关-node-版本的修改可以在《配置指南-掌握-Node-js-配置》一文中详细了解" class="headerlink" title="有关 node 版本的修改可以在《配置指南-掌握 Node.js 配置》一文中详细了解"></a>有关 node 版本的修改可以在《配置指南-掌握 Node.js 配置》一文中详细了解</h5></li>
<li><h5 id="成功安装-hope-主题，开启文档站点服务，效果如下：-2023-07-04-晚"><a href="#成功安装-hope-主题，开启文档站点服务，效果如下：-2023-07-04-晚" class="headerlink" title="成功安装 hope 主题，开启文档站点服务，效果如下：(2023/07/04 晚)"></a>成功安装 hope 主题，开启文档站点服务，效果如下：(2023/07/04 晚)</h5></li>
</ul>
<p><img src="http://blog.memory-life.xyz/image-20230704190155270.png" alt="image-20230704190155270"></p>
<h2 id="模板文件格式不规范"><a href="#模板文件格式不规范" class="headerlink" title="模板文件格式不规范"></a>模板文件格式不规范</h2><ul>
<li><h5 id="今天部署博客时，出现了这样的错误：（2023-08-07-早）"><a href="#今天部署博客时，出现了这样的错误：（2023-08-07-早）" class="headerlink" title="今天部署博客时，出现了这样的错误：（2023/08/07 早）"></a>今天部署博客时，出现了这样的错误：（2023/08/07 早）</h5></li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br></pre></td><td class="code"><pre><code class="hljs bash">FATAL &#123;<br>  err: Template render error: (unknown path)<br>    Error: expected end of comment, got end of file<br>      at Object._prettifyError (D:\blog\blog\node_modules\nunjucks\src\lib.js:36:11)<br>      ... 17 lines matching cause stack trace ...<br>      at process.processImmediate (node:internal/timers:476:21) &#123;<br>    cause: Template render error: (unknown path)<br>      Error: expected end of comment, got end of file<br>        at Object._prettifyError (D:\blog\blog\node_modules\nunjucks\src\lib.js:36:11)<br>        at Template.render (D:\blog\blog\node_modules\nunjucks\src\environment.js:538:21)<br>        at Environment.renderString (D:\blog\blog\node_modules\nunjucks\src\environment.js:380:17)<br>        at D:\blog\blog\node_modules\hexo\lib\extend\tag.js:236:16<br>        at tryCatcher (D:\blog\blog\node_modules\bluebird\js\release\util.js:16:23)<br>        at Promise.fromNode.Promise.fromCallback (D:\blog\blog\node_modules\bluebird\js\release\promise.js:209:30)<br>        at Tag.render (D:\blog\blog\node_modules\hexo\lib\extend\tag.js:235:20)<br>        at Object.onRenderEnd (D:\blog\blog\node_modules\hexo\lib\hexo\post.js:297:22)<br>        at D:\blog\blog\node_modules\hexo\lib\hexo\render.js:79:21<br>        at tryCatcher (D:\blog\blog\node_modules\bluebird\js\release\util.js:16:23)<br>        at Promise._settlePromiseFromHandler (D:\blog\blog\node_modules\bluebird\js\release\promise.js:547:31)<br>        at Promise._settlePromise (D:\blog\blog\node_modules\bluebird\js\release\promise.js:604:18)<br>        at Promise._settlePromise0 (D:\blog\blog\node_modules\bluebird\js\release\promise.js:649:10)<br>        at Promise._settlePromises (D:\blog\blog\node_modules\bluebird\js\release\promise.js:729:18)<br>        at _drainQueueStep (D:\blog\blog\node_modules\bluebird\js\release\async.js:93:12)<br>        at _drainQueue (D:\blog\blog\node_modules\bluebird\js\release\async.js:86:9)<br>        at Async._drainQueues (D:\blog\blog\node_modules\bluebird\js\release\async.js:102:5)<br>        at Async.drainQueues (D:\blog\blog\node_modules\bluebird\js\relea<br></code></pre></td></tr></table></figure>

<ul>
<li><h5 id="出现这样的很正常，检查一下哪篇-md-文章里的格式出错了："><a href="#出现这样的很正常，检查一下哪篇-md-文章里的格式出错了：" class="headerlink" title="出现这样的很正常，检查一下哪篇.md 文章里的格式出错了："></a>出现这样的很正常，检查一下哪篇.md 文章里的格式出错了：</h5><ul>
<li>标题栏</li>
<li>正文内容</li>
</ul>
</li>
<li><h5 id="如果无法准确定位到是哪篇文章出问题了，可以这样执行命令："><a href="#如果无法准确定位到是哪篇文章出问题了，可以这样执行命令：" class="headerlink" title="如果无法准确定位到是哪篇文章出问题了，可以这样执行命令："></a>如果无法准确定位到是哪篇文章出问题了，可以这样执行命令：</h5></li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">hexo g --debug<br></code></pre></td></tr></table></figure>

<ul>
<li><h5 id="这样就能准确定位到出错的文章了："><a href="#这样就能准确定位到出错的文章了：" class="headerlink" title="这样就能准确定位到出错的文章了："></a>这样就能准确定位到出错的文章了：</h5></li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br></pre></td><td class="code"><pre><code class="hljs bash">03:10:55.161 DEBUG Rendering post: D:\blog\blog\<span class="hljs-built_in">source</span>\_posts\解决前端框架使用中的常见问题.md<br>03:10:55.185 FATAL &#123;<br>  err: Template render error: (unknown path)<br>    Error: expected end of comment, got end of file<br>      at Object._prettifyError (D:\blog\blog\node_modules\nunjucks\src\lib.js:36:11)<br>      ... 17 lines matching cause stack trace ...<br>      at process.processImmediate (node:internal/timers:476:21) &#123;<br>    cause: Template render error: (unknown path)<br>      Error: expected end of comment, got end of file<br>        at Object._prettifyError (D:\blog\blog\node_modules\nunjucks\src\lib.js:36:11)<br>        at Template.render (D:\blog\blog\node_modules\nunjucks\src\environment.js:538:21)<br>        at Environment.renderString (D:\blog\blog\node_modules\nunjucks\src\environment.js:380:17)<br>        at D:\blog\blog\node_modules\hexo\lib\extend\tag.js:236:16<br>        at tryCatcher (D:\blog\blog\node_modules\bluebird\js\release\util.js:16:23)<br>        at Promise.fromNode.Promise.fromCallback (D:\blog\blog\node_modules\bluebird\js\release\promise.js:209:30)<br>        at Tag.render (D:\blog\blog\node_modules\hexo\lib\extend\tag.js:235:20)<br>        at Object.onRenderEnd (D:\blog\blog\node_modules\hexo\lib\hexo\post.js:297:22)<br>        at D:\blog\blog\node_modules\hexo\lib\hexo\render.js:79:21<br>        at tryCatcher (D:\blog\blog\node_modules\bluebird\js\release\util.js:16:23)<br>        at Promise._settlePromiseFromHandler (D:\blog\blog\node_modules\bluebird\js\release\promise.js:547:31)<br>        at Promise._settlePromise (D:\blog\blog\node_modules\bluebird\js\release\promise.js:604:18)<br>        at Promise._settlePromise0 (D:\blog\blog\node_modules\bluebird\js\release\promise.js:649:10)<br>        at Promise._settlePromises (D:\blog\blog\node_modules\bluebird\js\release\promise.js:729:18)<br>        at _drainQueueStep (D:\blog\blog\node_modules\bluebird\js\release\async.js:93:12)<br>        at _drainQueue (D:\blog\blog\node_modules\bluebird\js\release\async.js:86:9)<br>        at Async._drainQueues (D:\blog\blog\node_modules\bluebird\js\r<br></code></pre></td></tr></table></figure>

<ul>
<li><h5 id="找了半天才发现是这个问题："><a href="#找了半天才发现是这个问题：" class="headerlink" title="找了半天才发现是这个问题："></a>找了半天才发现是这个问题：</h5></li>
</ul>
<p><img src="http://blog.memory-life.xyz/image-20230807112357395.png" alt="image-20230807112357395"></p>
<ul>
<li><h5 id="超链接出现-特殊符号了，导致编译失败，删除就行了（2023-08-07-早）"><a href="#超链接出现-特殊符号了，导致编译失败，删除就行了（2023-08-07-早）" class="headerlink" title="超链接出现 # 特殊符号了，导致编译失败，删除就行了（2023/08/07 早）"></a>超链接出现 # 特殊符号了，导致编译失败，删除就行了（2023/08/07 早）</h5></li>
</ul>
<p><img src="http://blog.memory-life.xyz/image-20230910231333971.png" alt="image-20230910231333971"></p>
<h2 id="友链-item-格式错误"><a href="#友链-item-格式错误" class="headerlink" title="友链 item 格式错误"></a>友链 item 格式错误</h2><ul>
<li><h5 id="今天更新了下个人博客的友链列表，竟然这样也能出错："><a href="#今天更新了下个人博客的友链列表，竟然这样也能出错：" class="headerlink" title="今天更新了下个人博客的友链列表，竟然这样也能出错："></a>今天更新了下个人博客的友链列表，竟然这样也能出错：</h5></li>
</ul>
<p><img src="http://blog.memory-life.xyz/image-20231001220333236.png" alt="image-20231001220333236"></p>
<p><img src="http://blog.memory-life.xyz/image-20231001221500068.png" alt="image-20231001221500068"></p>
<ul>
<li><h5 id="如上，把哪个明显的缩进取消了就行了（2023-10-01-晚）"><a href="#如上，把哪个明显的缩进取消了就行了（2023-10-01-晚）" class="headerlink" title="如上，把哪个明显的缩进取消了就行了（2023/10/01 晚）"></a>如上，把哪个明显的缩进取消了就行了（2023/10/01 晚）</h5></li>
</ul>
<h2 id="图片违规"><a href="#图片违规" class="headerlink" title="图片违规"></a>图片违规</h2><p><img src="http://blog.memory-life.xyz/image-20231002162116235.png" alt="image-20231002162116235"></p>
<ul>
<li><h5 id="这张图片违规吗-😅："><a href="#这张图片违规吗-😅：" class="headerlink" title="这张图片违规吗 😅："></a>这张图片违规吗 😅：</h5></li>
</ul>
<p><img src="http://blog.memory-life.xyz/image-20231002162218625.png" alt="image-20231002162218625"></p>
<ul>
<li><h5 id="好好好，我删了就是了，正好没有文章引用这张图（2023-10-02-午）"><a href="#好好好，我删了就是了，正好没有文章引用这张图（2023-10-02-午）" class="headerlink" title="好好好，我删了就是了，正好没有文章引用这张图（2023/10/02 午）"></a>好好好，我删了就是了，正好没有文章引用这张图（2023/10/02 午）</h5></li>
</ul>
<h2 id="title-格式错误"><a href="#title-格式错误" class="headerlink" title="title 格式错误"></a>title 格式错误</h2><ul>
<li>奶奶的，就这里的问号后面没有空格，眼瞅着它报了一个月的错：<strong>（2023/12/01 晚）</strong></li>
</ul>
<p><img src="http://blog.memory-life.xyz/image-20231201230819941.png" alt="image-20231201230819941"></p>
<h2 id="密钥"><a href="#密钥" class="headerlink" title="密钥"></a>密钥</h2><blockquote>
<p>2025 年 6 月 5 日</p>
</blockquote>
<p>今天部署博客出现了问题，这应该是前段时间在本机重新生成 .ssh 密钥对后没有及时在部署平台做对应修改，现在权限识别错误。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><code class="hljs bash">Please make sure you have the correct access rights<br>and the repository exists.<br>FATAL &#123;<br>  err: Error: Spawn failed<br>      at ChildProcess.&lt;anonymous&gt; (D:\Blog\blog\node_modules\hexo-util\lib\spawn.js:51:21)<br>      at ChildProcess.emit (node:events:513:28)<br>      at cp.emit (D:\Blog\blog\node_modules\cross-spawn\lib\enoent.js:34:29)<br>      at ChildProcess._handle.onexit (node:internal/child_process:291:12) &#123;<br>    code: 128<br>  &#125;<br>&#125; Something<span class="hljs-string">&#x27;s wrong. Maybe you can find the solution here: %s https://hexo.io/docs/troubleshooting.html</span><br></code></pre></td></tr></table></figure>

<p><a target="_blank" rel="noopener" href="https://atomgit.com/">我的工作台-AtomGit</a></p>
<p><img src="http://blog.memory-life.xyz/image-20250605231544198.png" alt="image-20250605231544198"></p>
<h1 id="总结"><a href="#总结" class="headerlink" title="总结"></a>总结</h1><blockquote>
<p>2023 年 5 月 27 日</p>
</blockquote>
<p>至此，快速搭建博客站点和快速生成文档站点已经完毕。</p>
<p>在接下来的内容中，我们会继续分享如何使用 Gitee/GitHub 的 Page 服务来托管静态网站，详见《大道至简：快速搭建博客与文档站点的终极指南 2.0》。</p>
<p>有关博客/文档站点的详细配置，包括主题配置、目录结构等，我们会在《大道至简：快速搭建博客与文档站点的终极指南 3.0》一文中详细讲解。</p>

                
              </div>
            
            <hr/>
            <div>
              <!-- 文章页面 - 底部标签 -->
<div class="post-metas my-3">
  
  <div class="post-meta mr-3 d-flex align-items-center">
    <i class="iconfont icon-category"></i>
    <!-- 归档页 - 文章列表 -->


<span class="category-chains">
  
  
    
      <span class="category-chain">
        
  <a href="/blog/categories/%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2/" class="category-chain-item">个人博客</a>
  
  
    <span>></span>
    
  <a href="/blog/categories/%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2/%E4%BB%A3%E7%A0%81%E9%94%8B%E8%8A%92/" class="category-chain-item">代码锋芒</a>
  
  
    <span>></span>
    
  <a href="/blog/categories/%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2/%E4%BB%A3%E7%A0%81%E9%94%8B%E8%8A%92/%E9%83%A8%E7%BD%B2%E4%B9%8B%E9%81%93/" class="category-chain-item">部署之道</a>
  
  

  

  

      </span>
    
  
</span>

  </div>
   
  <div class="post-meta">
    <i class="iconfont icon-tags"></i>
    
    <a href="/blog/tags/%E7%BB%8F%E9%AA%8C/">#经验</a>
    
    <a href="/blog/tags/Blog/">#Blog</a>
    
    <a href="/blog/tags/Docs/">#Docs</a>
    
  </div>
  
</div>


              <!-- 文章页面 - 底部标签下方 -->

  
  <div class="license-box my-3">
    <div class="license-title">
      <div>大道至简：快速搭建博客与文档站点的终极指南1.0</div>
      <div>https://test.atomgit.net/blog/2023/05/27/大道至简：快速搭建博客与文档站点的终极指南1.0/</div>
    </div>
    <div class="license-meta">
      
        <div class="license-meta-item">
          <div>作者</div>
          <div>Memory</div>
        </div>
      
      
        <div class="license-meta-item license-meta-date">
          <div>发布于</div>
          <div>2023年5月27日</div>
        </div>
      
      
        <div class="license-meta-item license-meta-date">
          <div>更新于</div>
          <div>2025年10月1日</div>
        </div>
      
      
        <div class="license-meta-item">
          <div>许可协议</div>
          <div>
            
              
              
                <a target="_blank" href="https://creativecommons.org/licenses/by/4.0/">
                  <span class="hint--top hint--rounded" aria-label="BY - 署名">
                    <i class="iconfont icon-by"></i>
                  </span>
                </a>
              
            
          </div>
        </div>
      
    </div>
    <div class="license-icon iconfont"></div>
  </div>



              
                <div class="post-prevnext my-3">
                  <article class="post-prev col-6">
                    
                    
                      <a href="/blog/2023/06/03/%E4%BB%8E%E9%9B%B6%E5%BC%80%E5%A7%8B%E7%9A%84%20JavaWeb%20%E4%B9%8B%E6%97%85/" title="从零开始的 JavaWeb 之旅">
                        <i class="iconfont icon-arrowleft"></i>
                        <span class="hidden-mobile">从零开始的 JavaWeb 之旅</span>
                        <span class="visible-mobile">上一篇</span>
                      </a>
                    
                  </article>
                  <article class="post-next col-6">
                    
                    
                      <a href="/blog/2023/05/21/%E6%8E%A2%E7%B4%A2%20Python%20%E7%88%AC%E8%99%AB%E7%9A%84%E6%97%A0%E9%99%90%E5%8F%AF%E8%83%BD%E6%80%A7%EF%BC%9A%E5%9F%BA%E7%A1%80%E4%B8%8E%E5%BA%94%E7%94%A8/" title="探索Python爬虫的无限可能性：基础与应用">
                        <span class="hidden-mobile">探索Python爬虫的无限可能性：基础与应用</span>
                        <span class="visible-mobile">下一篇</span>
                        <i class="iconfont icon-arrowright"></i>
                      </a>
                    
                  </article>
                </div>
              
            </div>

            <!-- 文章页 - 评论上方 -->

  
  
    <article id="comments">
      
  <div id="valine"></div>
  <script type="text/javascript">
    Fluid.utils.loadComments('#valine', function() {
      Fluid.utils.createScript('https://cdn.jsdelivr.net/gh/HCLonely/Valine@latest/dist/Valine.min.js', function() {
        var options = Object.assign(
          {"appId":"T1hUHH9Ks1ggG9DBE3HgUPpV-gzGzoHsz","appKey":"XFkgzzvzNo3J3uNCbBiSOFKc","path":"window.location.pathname","placeholder":"填取QQ号和邮箱后评论，支持读取头像及消息提醒，留下点什么叭... ᶘ ᵒᴥᵒᶅ","avatar":"Gravatar","meta":["nick","mail","link"],"requiredFields":[],"pageSize":10,"lang":"zh-CN","highlight":true,"recordIP":false,"serverURLs":"https://t1huhh9k.lc-cn-n1-shared.com","emojiCDN":null,"emojiMaps":null,"enableQQ":true,"master":"8c9b6d6637904da62d74d019cc6982de","friends":"0188229a9cfc284176ea9135cb9514cc","visitor":true},
          {
            el: "#valine",
            path: window.location.pathname,
            app_id: "",
            app_key: "",
            placeholder: "填取QQ号和邮箱后评论，支持读取头像及消息提醒，留下点什么叭... ᶘ ᵒᴥᵒᶅ",
            avatar: "Gravatar",
            meta: ["nick","mail","link"],
            pageSize: "10",
            lang: "zh-CN",
            highlight: true,
            recordIP: false,
            serverURLs: "https://t1huhh9k.lc-cn-n1-shared.com",

            // 设置Bilibili表情包地址
            emojiCDN: '//i0.hdslb.com/bfs/emote/', 
            // 表情title和图片映射
            emojiMaps: {
                "tv_白眼": "48f75163437445665a9be80bb316e4cb252c5415.gif@48w_48h.webp",
                "tv_doge": "302d6c88c63ed162c81a49cafe7ed2709e6fb955.gif@48w_48h.webp",
                "tv_坏笑": "5d2572efd09aab5dde9e2a198bb3f9ac1e2a982e.gif@48w_48h.webp",
                "tv_难过": "9c6b41008a67755410f712334c64313df5f91b3f.gif@48w_48h.webp",
                "tv_生气": "1902a5a2df5b5c931d88c12f0feb264b1e109d0d.gif@48w_48h.webp",
                "tv_委屈": "af5a5853edb43a8178a8cb5df707fa5e88143699.gif@48w_48h.webp",
                "tv_斜眼笑": "c66568b471192ca1f62f6ed4384dc1b283ab7508.gif@48w_48h.webp",
                "tv_呆": "d3fa91e4db9215eb1e20ab9da44f1214aa4bda7b.gif@48w_48h.webp",
                "tv_发怒": "3959eb81b952e4fa8d269d98f9e3639172d84073.gif@48w_48h.webp",
                "tv_呕吐": "db58e9442aae26694af18cc1683607cca3a16763.gif@48w_48h.webp",
                "tv_思考": "b63f9146bfd985af014f8d6d4bdb498805be48f9.gif@48w_48h.webp",
                "tv_微笑": "b98656855d782f61cb8edc7f7fca6563ecafff7e.gif@48w_48h.webp",
                "tv_疑问": "fce1b1a0f3b0e39a2dc16a18508dba7b91e929f4.gif@48w_48h.webp",
                "tv_大哭": "cba61f05f3039b02a7ffc0dfcd9d7995df9fdd74.gif@48w_48h.webp",
                "tv_鼓掌": "be106e6b265883a9f28fbe10f7b765701e2618d4.gif@48w_48h.webp",
                "tv_抠鼻": "696d9f93e722144dc2a78aeffc569418fdf3d565.gif@48w_48h.webp",
                "tv_亲亲": "3534ea44ab74bd20352b88c245a06c4b4c46d271.gif@48w_48h.webp",
                "tv_调皮": "fcd967395fd14e4dd5829fa7e8a967ce23205e52.gif@48w_48h.webp",
                "tv_笑哭": "1c2fd1e8c9dde12812f86e5d4cbddd8993d98082.gif@48w_48h.webp",
                "tv_晕": "030040ec5c9ddc9e3d067658c4139e7314ab42f8.gif@48w_48h.webp",
                "tv_点赞": "30ecff401245fb56bcc1cf588d1809ac1ab1607c.gif@48w_48h.webp",
                "tv_害羞": "411a3e459e8580f5bfd9f639a408247c4b509935.gif@48w_48h.webp",
                "tv_睡着": "3c8b5e293261287a6203597e29b3de07df4d18c6.gif@48w_48h.webp",
                "tv_色": "a0c6d99ab0ab63b8648f5283ff72cec04b604828.gif@48w_48h.webp",
                "tv_吐血": "e17e4539e169d14a3389ff147afea760cebe5de5.gif@48w_48h.webp",
                "tv_无奈": "eb4cb5f07cfd177c7e6a7914316717e56d9cc1d0.gif@48w_48h.webp",
                "tv_再见": "344f61609ecce2008520dc8a977b6169215748a9.gif@48w_48h.webp",
                "tv_流汗": "390bccec65eaff536bd5bb2a0c5b8b0bdea47334.gif@48w_48h.webp",
                "tv_偷笑": "7f11e6f7f63e79112b833bd41fa13a83d7cd8474.gif@48w_48h.webp",
                "tv_抓狂":"a476b93ecd8e94ac3257323fd822f91cef212de2.gif@48w_48h.webp",
                "tv_黑人问号":"b609adf664be33224a9923262031165ae3e34cd2.gif@48w_48h.webp",
                "tv_困":"91c2bf34ecf842d7016c01d841db3d4074bd281f.gif@48w_48h.webp",
                "tv_打脸":"b0fad4856e59c1240e448437da3287bb5ce547e5.gif@48w_48h.webp",
                "tv_闭嘴":"a3fc5388b09e945be3f18fe23bfed5874a0285b7.gif@48w_48h.webp",
                "tv_鄙视":"293b5d459e6264ecf314d20937a936fa672ccd1e.gif@48w_48h.webp",
                "tv_腼腆":"30984e8264324f901d19bea85dada7103b695534.gif@48w_48h.webp",
                "tv_馋":"2525c5703c594e5f0752f68db8948773caebde47.gif@48w_48h.webp",
                "tv_可爱":"f92d20f76258bc5f33fc9d7c5e2a1d41fef19a7c.gif@48w_48h.webp",
                "tv_发财":"76131e52c9b033681b4c896c6024d29ef7ec7ec2.gif@48w_48h.webp",
                "tv_生病":"beb94829fe04f1a41bd6ca611e1f6ca9ca169afa.gif@48w_48h.webp",
                "tv_流鼻血":"8ef473f74a849420da712487b2f56ecca1f695f5.gif@48w_48h.webp",
                "tv_尴尬":"e0b84ef5ee3e5b8978e584c7c5a6550c51d15f84.gif@48w_48h.webp",
                "tv_大佬":"14ca0c05382b8741940942b2430b7a8d55c02f7e.gif@48w_48h.webp",
                "tv_流泪":"7e71cde7858f0cd50d74b0264aa26db612a8a167.png@48w_48h.webp",
                "tv_冷漠":"b9cbc755c2b3ee43be07ca13de84e5b699a3f101.png@48w_48h.webp",
                "tv_皱眉":"72ccad6679fea0d14cce648b4d818e09b8ffea2d.png@48w_48h.webp",
                "tv_鬼脸":"0ffbbddf8a94d124ca2f54b360bbc04feb6bbfea.png@48w_48h.webp",
                "tv_调侃":"4bc022533ef31544ca0d72c12c808cf4a1cce3e3.png@48w_48h.webp",
                "tv_目瞪口呆":"0b8cb81a68de5d5365212c99375e7ace3e7891b7.png@48w_48h.webp",
            },

            master: "8c9b6d6637904da62d74d019cc6982de",
            friends: "0188229a9cfc284176ea9135cb9514cc",
            tagMeta: ["博主","友人","访客"],
            visitor: true // 阅读量统计
          }
        )
        new Valine(options);
        Fluid.utils.waitElementVisible('#valine .vcontent', () => {
          var imgSelector = '#valine .vcontent img:not(.vemoji)';
          Fluid.plugins.imageCaption(imgSelector);
          Fluid.plugins.fancyBox(imgSelector);
        })
      });
    });
  </script>
  <noscript>Please enable JavaScript to view the comments</noscript>


    </article>
  


          </article>
        </div>
      </div>
    </div>

    <div class="side-col d-none d-lg-block col-lg-2">
      <!-- 文章页面 - 右侧目录 -->

  <aside class="sidebar" style="margin-left: -1rem">
    <!-- 文章页面 - 右侧目录上方 -->
<div id="toc">
  <p class="toc-header">
    <i class="iconfont icon-list"></i>
    <span>目录</span>
  </p>
  <div class="toc-body" id="toc-body"></div>
</div>



  </aside>



    </div>
  </div>
</div>





  



  



  



  



  







    

    
      <a id="scroll-top-button" aria-label="TOP" href="#" role="button">
        <i class="iconfont icon-arrowup" aria-hidden="true"></i>
      </a>
    

    
      <!-- 博客 - 搜索框 -->
<div
  class="modal fade"
  id="modalSearch"
  tabindex="-1"
  role="dialog"
  aria-labelledby="ModalLabel"
  aria-hidden="true"
>
  <div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header text-center">
        <h4 class="modal-title w-100 font-weight-bold">
          搜索
        </h4>
        <button
          type="button"
          id="local-search-close"
          class="close"
          data-dismiss="modal"
          aria-label="Close"
        >
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body mx-3">
        <div class="md-form mb-5">
          <input
            type="text"
            id="local-search-input"
            class="form-control validate"
          />
          <label data-error="x" data-success="v" for="local-search-input"
            >关键词</label
          >
        </div>
        <div class="list-group" id="local-search-result"></div>
      </div>
    </div>
  </div>
</div>

    

    
        <div class="modal fade" id="modalNotice" tabindex="-1" role="dialog" aria-hidden="true"
     style="font-family: 'Ma Shan Zheng', cursive; color: #ffffff;">
    <div class="modal-dialog modal-dialog-scrollable" role="document"
         style="font-family: 'Ma Shan Zheng', cursive;">
        <div class="modal-content" style="border-radius: 6px;">
            <!-- 公告头部 - 响应式设计 -->
            <div class="modal-header text-center"
                 style="padding: 1rem 1.5rem;border-bottom: 1px solid rgba(255,255,255,0.2)">
                <h4 class="modal-title w-100 font-weight-bold"
                    style="font-family: 'Microsoft YaHei', sans-serif;letter-spacing: 1px;text-shadow: 1px 1px 2px rgba(0,0,0,0.2);color: #ffffff;
                           font-size: 1.5rem; /* 默认PC端大小 */
                           /* 移动端适配 */
                           @media (max-width: 768px) {
                               font-size: 1.2rem;
                           }">
                    <div class="notice-title">
                        <i class="fas fa-bullhorn mr-2"> 围栏告示</i>
                    </div>
                    <small style="display: block; font-family: 'STKaiti', serif; font-size: 0.6em; color: #a0a0a0; margin-top: 3px;">
                        旧梦轻拾 · 谨识
                    </small>
                </h4>
            </div>

            <!-- 公告内容区 - 响应式设计 -->
            <div class="modal-body"
                 style="padding: 2rem; /* PC端 */
                        max-height: 70vh;
                        overflow-y: auto;
                        /* 移动端适配 */
                        @media (max-width: 768px) {
                            padding: 1rem;
                            max-height: 60vh;
                        }">
                <!-- 图片容器（响应式设计） -->
                <!--                <div class="announcement-hero"-->
                <!--                     style="margin-bottom: 2rem; /* PC端 */-->
                <!--                            /* 移动端适配 */-->
                <!--                            @media (max-width: 768px) {-->
                <!--                                margin-bottom: 1rem;-->
                <!--                            }">-->
                <!--                    <img src="http://blog.memory-life.icu/%E3%80%90%E5%93%B2%E9%A3%8E%E5%A3%81%E7%BA%B8%E3%80%91%E5%8A%A8%E6%BC%AB-%E5%A4%95%E9%98%B3%E9%93%81%E8%BD%A8.jpg"-->
                <!--                         alt="时光溯洄题图"-->
                <!--                         style="width: 100%; -->
                <!--                                max-height: 400px; /* PC端 */-->
                <!--                                object-fit: cover;-->
                <!--                                border-radius: 4px; -->
                <!--                                box-shadow: 0 2px 12px rgba(0,0,0,0.1);-->
                <!--                                /* 移动端适配 */-->
                <!--                                @media (max-width: 768px) {-->
                <!--                                    max-height: 30vh;-->
                <!--                                }"-->
                <!--                         loading="lazy">-->
                <!--                </div>-->

                <!-- 静态公告列表 - 响应式设计 -->
                <div class="announcement-list">
                    <div class="announcement-item"
                         style="margin-bottom: 2rem; /* PC端 */
                                padding: 2rem;
                                background: rgba(255,255,255,0.05);
                                border-radius: 8px;
                                /* 移动端适配 */
                                @media (max-width: 768px) {
                                    margin-bottom: 1rem;
                                    padding: 1rem;
                                }">
                        <h2 style="color: #d38532;
                                  font-weight: 600;
                                  font-size: 1.5rem; /* PC端 */
                                  margin-bottom: 1.2rem;
                                  letter-spacing: 0.5px;
                                  /* 移动端适配 */
                                  @media (max-width: 768px) {
                                      font-size: 1.2rem;
                                      margin-bottom: 1rem;
                                  }">
                            <i class="fas fa-calendar-check mr-2"></i>时光溯洄
                            <small style="display: block; font-size: 0.6em; color: #b8b8b8;text-align: right;">——
                                晨昏往事</small>
                        </h2>
                        <div style="color: #e0e0e0;
                                  line-height: 1.8; /* PC端 */
                                  font-size: 1.05rem;
                                  letter-spacing: 0.3px;
                                  /* 移动端适配 */
                                  @media (max-width: 768px) {
                                      line-height: 1.6;
                                      font-size: 0.95rem;
                                  }">
                            <!-- 内容保持不变 -->
                            <p style="margin-bottom: 1rem; text-indent: 2em;">你好。</p>
                            <!-- 其余段落内容... -->
                            <p style="margin-bottom: 1rem; text-indent: 2em;">
                                建站后的第813天，在百忙之中总算又能抽出时间来，对整个博客站点功能做整体的规划及优化完善。</p>
                            <p style="margin-bottom: 1rem; text-indent: 2em;">
                                在刚刚过去的几年时间里，往事皆以笔墨挥毫于时光素笺之上，数百天如一日，故事的书写从未间断过。</p>
                            <p style="margin-bottom: 1rem; text-indent: 2em; font-style: italic; color: #b8b8b8;">
                                时光悠悠，日月如流，过往的蹉跎岁月总在不经意间在心间回眸。</p>
                            <p style="margin-bottom: 1rem; text-indent: 2em; font-weight: 500; color: #ffffff;">
                                俯仰之间，轻舟已过万重山。</p>
                            <p style="margin-bottom: 1rem; text-indent: 2em; font-weight: 500; color: #ffffff;">
                                蹉跎之处，往事皆成云烟散。</p>
                            <p style="margin-bottom: 1rem; text-indent: 2em;">
                                这几年的时光过得太快了，好像过去这段岁月里的所有事情都发生在一瞬间。</p>
                            <p style="margin-bottom: 1rem; text-indent: 2em;">
                                这几年的时光同样太久了，久到那些时日里仿佛囊括了自己的整个前半生。</p>
                            <p style="margin-bottom: 0; text-align: right; font-size: 0.95rem; color: #a0a0a0;">——
                                八百余个昼夜，当时只道是地久天长，如今回望，不过浮光掠影间的一瞬。</p>
                        </div>
                    </div>

                    <!-- 第二个公告项 - 响应式设计 -->
                    <div class="announcement-item"
                         style="margin-bottom: 2rem; /* PC端 */
                                padding: 2rem;
                                background: rgba(255,255,255,0.05);
                                border-radius: 8px;
                                /* 移动端适配 */
                                @media (max-width: 768px) {
                                    margin-bottom: 1rem;
                                    padding: 1rem;
                                }">
                        <h2 style="color: #6cc70b;
                                  font-weight: 600;
                                  font-size: 1.5rem; /* PC端 */
                                  margin-bottom: 1.2rem;
                                  letter-spacing: 0.5px;
                                  /* 移动端适配 */
                                  @media (max-width: 768px) {
                                      font-size: 1.2rem;
                                      margin-bottom: 1rem;
                                  }">
                            <i class="fas fa-book-open mr-2"></i>墨痕新注
                            <small style="display: block; font-size: 0.6em; color: #b8b8b8;text-align: right;">——
                                待起之章</small>
                        </h2>
                        <div style="color: #e0e0e0;
                                  line-height: 1.8; /* PC端 */
                                  font-size: 1.05rem;
                                  letter-spacing: 0.3px;
                                  /* 移动端适配 */
                                  @media (max-width: 768px) {
                                      line-height: 1.6;
                                      font-size: 0.95rem;
                                  }">
                            <!-- 列表内容 - 响应式设计 -->
                            <ul style="padding-left: 1.8rem; /* PC端 */
                                      margin-bottom: 1.5rem;
                                      /* 移动端适配 */
                                      @media (max-width: 768px) {
                                          padding-left: 1.5rem;
                                          margin-bottom: 1.2rem;
                                      }">
                                <li style="margin-bottom: 0.8rem; /* PC端 */
                                         position: relative;
                                         list-style-type: none;
                                         /* 移动端适配 */
                                         @media (max-width: 768px) {
                                             margin-bottom: 0.6rem;
                                         }">
                                    <span style="position: absolute;
                                               left: -1.8rem; /* PC端 */
                                               color: #6cc70b;
                                               /* 移动端适配 */
                                               @media (max-width: 768px) {
                                                   left: -1.5rem;
                                               }">◆</span>
                                    <span style="font-weight: bolder;">溯源计划：</span>新增博文"溯源计划"，旨在用先进的数字技术留住过去的旧时光，让家族的记忆在数字云端生长发芽，全站博文数量已达90+。
                                </li>
                                <li style="margin-bottom: 0.8rem; /* PC端 */
                                         position: relative;
                                         list-style-type: none;
                                         /* 移动端适配 */
                                         @media (max-width: 768px) {
                                             margin-bottom: 0.6rem;
                                         }">
                                    <span style="position: absolute;
                                               left: -1.8rem; /* PC端 */
                                               color: #6cc70b;
                                               /* 移动端适配 */
                                               @media (max-width: 768px) {
                                                   left: -1.5rem;
                                               }">◆</span>
                                    <span style="font-weight: bolder;">围栏告示：</span>自去年夏天站点新增了“评论回复”功能后，至今时隔十余月，在芒种前夕本站久违地上线“围栏告示”功能，本公告栏会不定时更新，持续跟进记录最新站点功能调整日志，更多精彩内容请敬请期待。
                                </li>
                                <li style="margin-bottom: 0.8rem; /* PC端 */
                                         position: relative;
                                         list-style-type: none;
                                         /* 移动端适配 */
                                         @media (max-width: 768px) {
                                             margin-bottom: 0.6rem;
                                         }">
                                    <span style="position: absolute;
                                               left: -1.8rem; /* PC端 */
                                               color: #6cc70b;
                                               /* 移动端适配 */
                                               @media (max-width: 768px) {
                                                   left: -1.5rem;
                                               }">◆</span>
                                    <span style="font-weight: bolder;">图片查看：</span>最近几周时间里，考虑到图文流量费用收取问题，暂时关闭了七牛云对象存储私有空间访问权限，故博文内的图文无法正常预览，择日考虑开启访问权限。
                                </li>
                                <li style="margin-bottom: 0.8rem; /* PC端 */
                                         position: relative;
                                         list-style-type: none;
                                         /* 移动端适配 */
                                         @media (max-width: 768px) {
                                             margin-bottom: 0.6rem;
                                         }">
                                    <span style="position: absolute;
                                               left: -1.8rem; /* PC端 */
                                               color: #6cc70b;
                                               /* 移动端适配 */
                                               @media (max-width: 768px) {
                                                   left: -1.5rem;
                                               }">◆</span>
                                    <span style="font-weight: bolder;">壁纸下载：</span>后续计划实现壁纸下载功能，均为个人收集的共150+超高分辨率精美壁纸，提供在线预览以及下载功能。
                                </li>
                                <li style="margin-bottom: 0.8rem; /* PC端 */
                                         position: relative;
                                         list-style-type: none;
                                         /* 移动端适配 */
                                         @media (max-width: 768px) {
                                             margin-bottom: 0.6rem;
                                         }">
                                    <span style="position: absolute;
                                               left: -1.8rem; /* PC端 */
                                               color: #6cc70b;
                                               /* 移动端适配 */
                                               @media (max-width: 768px) {
                                                   left: -1.5rem;
                                               }">◆</span>
                                    <span style="font-weight: bolder;">阅读体验：</span>规划完善文章内分页功能，并提供“最近更新”的文章列表，计划收录更新率较高的文章，譬如：阳台日记、叙事之外、岁月如歌、游戏人生等等，尽可能多的提升在线浏览和阅读体验。
                                </li>
                                <li style="margin-bottom: 0.8rem; /* PC端 */
                                         position: relative;
                                         list-style-type: none;
                                         /* 移动端适配 */
                                         @media (max-width: 768px) {
                                             margin-bottom: 0.6rem;
                                         }">
                                    <span style="position: absolute;
                                               left: -1.8rem; /* PC端 */
                                               color: #6cc70b;
                                               /* 移动端适配 */
                                               @media (max-width: 768px) {
                                                   left: -1.5rem;
                                               }">◆</span>
                                    <span style="font-weight: bolder;">友链完善：</span>持续优化完善友链页面，整理归档个人常用的高质量网站合集，无偿分享给有缘人。
                                </li>
                                <li style="margin-bottom: 0.8rem; /* PC端 */
                                         position: relative;
                                         list-style-type: none;
                                         /* 移动端适配 */
                                         @media (max-width: 768px) {
                                             margin-bottom: 0.6rem;
                                         }">
                                    <span style="position: absolute;
                                               left: -1.8rem; /* PC端 */
                                               color: #6cc70b;
                                               /* 移动端适配 */
                                               @media (max-width: 768px) {
                                                   left: -1.5rem;
                                               }">◆</span>
                                    <span style="font-weight: bolder;">音乐餐厅：</span>历经十余小时不间断调研和尝试，本站成功上线”音乐餐厅”功能，目前仅收录了个人在QQ音乐平台积累的两份歌单，再匆忙也要记得点播一首喜欢的音乐，没有音乐熏陶的心灵终究是充满缺憾的。
                                </li>
                                <li style="margin-bottom: 0.8rem; /* PC端 */
                                         position: relative;
                                         list-style-type: none;
                                         /* 移动端适配 */
                                         @media (max-width: 768px) {
                                             margin-bottom: 0.6rem;
                                         }">
                                    <span style="position: absolute;
                                               left: -1.8rem; /* PC端 */
                                               color: #6cc70b;
                                               /* 移动端适配 */
                                               @media (max-width: 768px) {
                                                   left: -1.5rem;
                                               }">◆</span>
                                    <span style="font-weight: bolder;">三言两语：</span>每张照片都是时光的便签，随手一贴就记下了那天，本站结合Mamos实现并注入留言板功能，随缘记录那些藏在照片背后的故事。
                                </li>
                                <li style="margin-bottom: 0.8rem; /* PC端 */
                                         position: relative;
                                         list-style-type: none;
                                         /* 移动端适配 */
                                         @media (max-width: 768px) {
                                             margin-bottom: 0.6rem;
                                         }">
                                    <span style="position: absolute;
                                               left: -1.8rem; /* PC端 */
                                               color: #6cc70b;
                                               /* 移动端适配 */
                                               @media (max-width: 768px) {
                                                   left: -1.5rem;
                                               }">◆</span>
                                    <span style="font-weight: bolder;">旧梦轻拾：</span>更新全站博客文章所属分类，共设有代码锋芒、部署之道、旧梦轻拾、人间片刻等十余种分类。
                                </li>
                                <li style="margin-bottom: 0.8rem; /* PC端 */
                                         position: relative;
                                         list-style-type: none;
                                         /* 移动端适配 */
                                         @media (max-width: 768px) {
                                             margin-bottom: 0.6rem;
                                         }">
                                    <span style="position: absolute;
                                               left: -1.8rem; /* PC端 */
                                               color: #6cc70b;
                                               /* 移动端适配 */
                                               @media (max-width: 768px) {
                                                   left: -1.5rem;
                                               }">◆</span>
                                    <span style="font-weight: bolder;">方寸之间：</span>博客应用版发布，更便捷的阅读体验来了！现已正式推出独立的桌面应用程序与移动端应用程序，暂时通过网盘和代码库提供安装包。
                                </li>
                                <p style="margin-bottom: 0; text-align: right; font-size: 0.9rem; color: #8a8a8a;">
                                    此公告最后更新于：<span style="color: #6cc70b;">2025/09/30晚</span>
                                </p>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 公告页脚 - 响应式设计 -->
            <div class="modal-footer"
                 style="border-top: 1px solid rgba(255,255,255,0.2);
                        padding: 1rem 1.5rem; /* PC端 */
                        justify-content: space-between;
                        /* 移动端适配 */
                        @media (max-width: 768px) {
                            padding: 0.8rem;
                        }">
                <small style="color: #ffffff;
                            font-size: 0.9rem; /* PC端 */
                            /* 移动端适配 */
                            @media (max-width: 768px) {
                                font-size: 0.8rem;
                            }">
                    <i class="iconfont icon-pen"></i>
                    <i class="fas fa-info-circle mr-1"></i>芒种前夕 · 旅途第813天
                    · 2025/05/28
                </small>
                <button id="confirm-btn" type="button" class="btn btn-sm" data-dismiss="modal"
                        style="background: #a0a0a0;
                               color: #ffffff;
                               border-radius: 4px;
                               padding: 0.5rem 1.2rem; /* PC端 */
                               border: none;
                               font-size: 0.9rem;
                               /* 移动端适配 */
                               @media (max-width: 768px) {
                                   padding: 0.3rem 0.8rem;
                                   font-size: 0.85rem;
                               }">
                    <i class="fas fa-check mr-1" style="color: #ffffff;">心已阅</i>
                </button>
            </div>
        </div>
    </div>
</div>

<style>
  .notice-title {
    display: flex;
    align-items: center;
    white-space: nowrap;
  }

  .notice-title:before,
  .notice-title:after {
    content: "";
    flex: 1;
    height: 1px;
    background: #ddd; /* 横线颜色 */
    margin: 0 10px; /* 横线与文字的间距 */
  }
</style>


<style>
  /* 响应式模态框宽度 */
  @media (min-width: 992px) {
    #modalNotice .modal-dialog {
      max-width: 800px;
    }
  }

  @media (max-width: 991px) {
    #modalNotice .modal-dialog {
      margin: 0.5rem auto;
    }
  }
</style>

<script>
  // 页面加载完成后执行
  document.addEventListener('DOMContentLoaded', function () {
    // 检查是否首次访问
    if (!localStorage.getItem('hasShownPopup')) {
      // 动态加载notice.ejs内容
      fetch('_partials/notice.ejs')  // 替换为实际路径
        .then(response => response.text())
        .then(html => {
          // 插入到页面body末尾
          document.body.insertAdjacentHTML('beforeend', html);

          // 手动初始化Bootstrap模态框
          $('#modalNotice').modal('show');

          // 标记为已显示
          localStorage.setItem('hasShownPopup', 'true');

          // 监听关闭事件
          $('#modalNotice').on('hidden.bs.modal', function () {
            // 可选的后续处理
          });
        })
        .catch(error => {
          console.error('加载公告栏失败:', error);
          // 备用方案：显示简单弹窗
          const fallbackHTML = `
                <div class="modal-backdrop" style="/* 样式 */">
                    <div class="modal-content">/* 内容 */</div>
                </div>`;
          document.body.insertAdjacentHTML('beforeend', fallbackHTML);
        });
    }
  });
</script>

    

    
  </main>

  <footer>
    <!-- 博客 - 页脚 -->
<div class="footer-inner">
  
    <div class="footer-content">
       <a href="https://hexo.fluid-dev.com/docs/guide/" target="_blank" rel="nofollow noopener"> <span>Memory | 个人文档站点</span> </a>
<i class="iconfont icon-love"></i> <a href="https://hexo.fluid-dev.com/docs/guide/" target="_blank" rel="nofollow noopener"> <span>配置指南 | Hexo Fluid 用户手册</span> </a> 
    </div>
  

  

  
    <!-- 备案信 ICP for China -->
    <div class="beian">
  <span>
    <a href="http://beian.miit.gov.cn/" target="_blank" rel="nofollow noopener">
      京ICP证123456号
    </a>
  </span>
  
    
      <span>
        <a
          href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=12345678"
          rel="nofollow noopener"
          class="beian-police"
          target="_blank"
        >
          
            <span style="visibility: hidden; width: 0">|</span>
            <img src="/blog/img/police_beian.png" alt="police-icon"/>
          
          <span>京公网安备12345678号</span>
        </a>
      </span>
    
  
</div>

  

  

</div>

<!-- 评论框美化 -->
<style>
    #comments .veditor{
        min-height: 20vh;
        background-image: url(http://blog.memory-life.icu/pathway0716.jpg);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: right;
        background-color: rgba(255,255,255,0);
        resize: none;}
</style>

<script>
    //   自定义邮箱审核规则
    document.body.addEventListener('click', function(e) {
        if (e.target.classList.contains('vsubmit')) {
            const email = document.querySelector('input[type=email]');
            const nick = document.querySelector('input[name=nick]');
            const reg = /^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/;
            if (!email.value || !nick.value || !reg.test(email.value)) {
                const str = `<div class="valert text-center"><div class="vtext">请填写正确的昵称和邮箱！</div></div>`;
                const vmark = document.querySelector('.vmark');
                vmark.innerHTML = str;
                vmark.style.display = 'block';
                setTimeout(function() {
                    vmark.style.display = 'none';
                    vmark.innerHTML = '';
                }, 2500);
            }
        }
    })
</script>



  </footer>

  <!-- Scripts -->
  
  <script  src="https://lib.baomitu.com/nprogress/0.2.0/nprogress.min.js" ></script>
  <link  rel="stylesheet" href="https://lib.baomitu.com/nprogress/0.2.0/nprogress.min.css" />

  <script>
    NProgress.configure({"showSpinner":false,"trickleSpeed":100})
    NProgress.start()
    window.addEventListener('load', function() {
      NProgress.done();
    })
  </script>


<script  src="https://lib.baomitu.com/jquery/3.6.0/jquery.min.js" ></script>
<script  src="https://lib.baomitu.com/twitter-bootstrap/4.6.1/js/bootstrap.min.js" ></script>
<script  src="/blog/js/events.js" ></script>
<script  src="/blog/js/plugins.js" ></script>


  <script  src="https://lib.baomitu.com/typed.js/2.0.12/typed.min.js" ></script>
  <script>
    (function (window, document) {
      var typing = Fluid.plugins.typing;
      var subtitle = document.getElementById('subtitle');
      if (!subtitle || !typing) {
        return;
      }
      var text = subtitle.getAttribute('data-typed-text');
      
        typing(text);
      
    })(window, document);
  </script>







  
<script>
  Fluid.utils.createScript('https://lib.baomitu.com/tocbot/4.18.2/tocbot.min.js', function() {
    var toc = jQuery('#toc');
    if (toc.length === 0 || !window.tocbot) { return; }
    var boardCtn = jQuery('#board-ctn');
    var boardTop = boardCtn.offset().top;

    window.tocbot.init(Object.assign({
      tocSelector     : '#toc-body',
      contentSelector : '.markdown-body',
      linkClass       : 'tocbot-link',
      activeLinkClass : 'tocbot-active-link',
      listClass       : 'tocbot-list',
      isCollapsedClass: 'tocbot-is-collapsed',
      collapsibleClass: 'tocbot-is-collapsible',
      scrollSmooth    : true,
      includeTitleTags: true,
      headingsOffset  : -boardTop,
    }, CONFIG.toc));
    if (toc.find('.toc-list-item').length > 0) {
      toc.css('visibility', 'visible');
    }

    Fluid.events.registerRefreshCallback(function() {
      if ('tocbot' in window) {
        tocbot.refresh();
        var toc = jQuery('#toc');
        if (toc.length === 0 || !tocbot) {
          return;
        }
        if (toc.find('.toc-list-item').length > 0) {
          toc.css('visibility', 'visible');
        }
      }
    });
  });
</script>


  <script src=https://lib.baomitu.com/clipboard.js/2.0.11/clipboard.min.js></script>

  <script>Fluid.plugins.codeWidget();</script>


  
<script>
  Fluid.utils.createScript('https://lib.baomitu.com/anchor-js/4.3.1/anchor.min.js', function() {
    window.anchors.options = {
      placement: CONFIG.anchorjs.placement,
      visible  : CONFIG.anchorjs.visible
    };
    if (CONFIG.anchorjs.icon) {
      window.anchors.options.icon = CONFIG.anchorjs.icon;
    }
    var el = (CONFIG.anchorjs.element || 'h1,h2,h3,h4,h5,h6').split(',');
    var res = [];
    for (var item of el) {
      res.push('.markdown-body > ' + item.trim());
    }
    if (CONFIG.anchorjs.placement === 'left') {
      window.anchors.options.class = 'anchorjs-link-left';
    }
    window.anchors.add(res.join(', '));

    Fluid.events.registerRefreshCallback(function() {
      if ('anchors' in window) {
        anchors.removeAll();
        var el = (CONFIG.anchorjs.element || 'h1,h2,h3,h4,h5,h6').split(',');
        var res = [];
        for (var item of el) {
          res.push('.markdown-body > ' + item.trim());
        }
        if (CONFIG.anchorjs.placement === 'left') {
          anchors.options.class = 'anchorjs-link-left';
        }
        anchors.add(res.join(', '));
      }
    });
  });
</script>


  
<script>
  Fluid.utils.createScript('https://lib.baomitu.com/fancybox/3.5.7/jquery.fancybox.min.js', function() {
    Fluid.plugins.fancyBox();
  });
</script>


  <script>Fluid.plugins.imageCaption();</script>

  <script  src="/blog/js/local-search.js" ></script>

  <script defer src="/blog/js/leancloud.js" ></script>




    
<script src="https://cdn.jsdelivr.net/npm/aplayer@1.10.1/dist/APlayer.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/meting@2/dist/Meting.min.js"></script>



<!-- 主题的启动项，将它保持在最底部 -->
<!-- the boot of the theme, keep it at the bottom -->
<script  src="/blog/js/boot.js" ></script>


  

  <noscript>
    <div class="noscript-warning">博客在允许 JavaScript 运行的环境下浏览效果更佳</div>
  </noscript>
</body>
</html>
